Totally Zenned
- Join Date:
- Aug 2007
- Location:
- Gijón, Asturias, Spain
- Posts:
- 2,875
- Plugin Contributions:
- 7
[Done v1.6.0] Product description listing: inline javascript may not be stripped
Not sure whether this would be classed as a bug but function zen_clean_html does not get rid of inline javascript in the product description cleanly/completely.
Why is there javascript in the product description: I have a few products that use an expanding table function which I really don't need to be loaded globally on all product pages so its used in that product description only.
This results in this type of thing in the product listing:
Singled-sided paddock stand pins are available in a range of outer diameters, choose the one appropriate for the inner diameter of your bike hub. $(document).ready(function() {$("table").tablesorter({widgets: ["zebra"],
from this source
<p>Singled-sided paddock stand pins are available in a range of outer diameters, choose the one appropriate for the inner diameter of your bike hub.</p> <script type="text/javascript" src="includes/templates/My template/jscript/jquery.tablesorter.js"></script> <script type="text/javascript">$(document).ready(function() {$("table").tablesorter({widgets: ["zebra"], widgetOptions:{zebra:["normal-row", "alt-row"]}});});</script>
Suggestions?
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...