Code:
<Actinic:PRICE_EXPLANATION PROD_REF="<actinic:variable name="ProductID" />" COMPONENTID=-1><actinic:variable name="RetailCustomerMessage" /></Actinic:PRICE_EXPLANATION>
How may I strip html in this circumstance?
Thank you.
<Actinic:PRICE_EXPLANATION PROD_REF="<actinic:variable name="ProductID" />" COMPONENTID=-1><actinic:variable name="RetailCustomerMessage" /></Actinic:PRICE_EXPLANATION>
<actinic:variable name="RetailCustomerMessage" />
<actinic:block php="true">echo strip_tags('<actinic:variable name="RetailCustomerMessage" encoding="perl" selectable="false" />');</actinic:block>
Price,Retail,24000,0,1,1,"","<b>Wowza</b>",0
<div class="product-text"> <actinic:block php="true" selectable="false" > include_once 'htmlfixer.class.php'; $dirty_html = '<actinic:variable name="ProductDescription" encoding="perl" selectable="false" />'; $dirty_html = str_replace("!!","","$dirty_html"); $a = new HtmlFixer(); $clean_html = $a->getFixedHtml($dirty_html); echo $clean_html; </actinic:block></div>
!!<<span style='font-size: 14px;'>>!! !!<<strong>>!!A 2-part accessory which can be attached to the end of our 6mm and 8mm !!<<a href="Polypropylene_Shock_Cord_Reels.html">shock cord</a>>!! to create a handy hook fixing. Supplied as single fixing (shock cord supplied separately) Colour : Black Minimum force daN required to remove hook from cable: 8mm dia. cable PE covering 30 daN Tolerance +/- 15%!!<</span>>!!
<> <>A 2-part accessory which can be attached to the end of our 6mm and 8mm <shock cord> to create a handy hook fixing. Supplied as single fixing (shock cord supplied separately) Colour : Black Minimum force daN required to remove hook from cable: 8mm dia. cable PE covering 30 daN Tolerance +/- 15%>
$dirty_html = str_replace("!!","","$dirty_html");
$dirty_html = str_replace("!!<","","$dirty_html"); $dirty_html = str_replace(">!!","","$dirty_html")
<actinic:block php="true" selectable="false" > include_once 'htmlfixer.class.php'; $dirty_html = '<actinic:variable name="ProductDescription" encoding="perl" selectable="false" />'; $dirty_html = str_replace("!!<","","$dirty_html"); $dirty_html = str_replace(">!!","","$dirty_html"); $a = new HtmlFixer(); $clean_html = $a->getFixedHtml($dirty_html); echo $clean_html; </actinic:block></div>
<div class="product-text"> <actinic:block php="true" selectable="false" > include_once 'htmlfixer.class.php'; $dirty_html = <<<ENDOFDESCRIPTION <actinic:variable name="ProductDescription" /> ENDOFDESCRIPTION; $a = new HtmlFixer(); echo $a->getFixedHtml($dirty_html); </actinic:block> </div>
Comment