Is there a list someplace that identifies which fields have their htmlentities translated and which don't?
I created a sample product to see what's going on. That product's name is "Product" & "Example", its description is This product has both double-quotes (") and ampersands (&) in its title, model number and name. and its model number is "EXAMPLE" & product. I also changed its manufacturer to "P&E".
Here's how its product_info page is rendered:
Sometimes the double-quotes are converted (zen_image), but most times not; the ampersands are never converted. Is there a "rule" that we can use to determine when it's OK to be lazy and just use & and " and when it's necessary to use & and " to get properly validated HTML?Code:<!--bof Main Product Image --> <div id="productMainImage" class="centeredContent back"> <script language="javascript" type="text/javascript"><!-- document.write('<a href="javascript:popupWindow(\'http://localhost/vinos/demo/index.php?main_page=popup_image&pID=186\')"><img src="images/no_picture.gif" alt="\"Product\" & \"Example\"" title=" \"Product\" & \"Example\" " width="100" height="80" /><br /><span class="imgLink">larger image</span></a>'); //--></script> <noscript> <a href="http://localhost/vinos/demo/index.php?main_page=popup_image&pID=186" target="_blank"><img src="images/no_picture.gif" alt=""Product" & "Example"" title=" "Product" & "Example" " width="100" height="80" /><br /><span class="imgLink">larger image</span></a></noscript> </div><!--eof Main Product Image--> <!--bof Product Name--> <h1 id="productName" class="productGeneral">"Product" & "Example"</h1> <!--eof Product Name--> <!--bof Product Price block --> <h2 id="productPrices" class="productGeneral"> $40.00</h2> <!--eof Product Price block --> <!--bof free ship icon --> <!--eof free ship icon --> <!--bof Product description --> <div id="productDescription" class="productGeneral biggerText">This product has both double-quotes (") and ampersands (&) in its title, model number and name.</div> <!--eof Product description --> <br class="clearBoth" /> <!--bof Add to Cart Box --> <div id="cartAdd"> Add to Cart: <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br /><input type="hidden" name="products_id" value="186" /><input type="image" src="includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " /> </div> <!--eof Add to Cart Box--> <!--bof Product details list --> <ul id="productDetailsList" class="floatingBox back"> <li>Model: "EXAMPLE" & product</li> <li>Shipping Weight: 5lbs</li> <li>70 Units in Stock</li> <li>Manufactured by: "P&E"</li> </ul> <br class="clearBoth" /> <!--eof Product details list -->


Reply With Quote
ahahahaha, thank you for that bit of humor

