I’m using EE 1.6.4. I want to use the “strip tags” function on some truncated text. Users cut and paste their blog summary, and often it does not close HTML tags and mookies up the entire page.
I have PHP enabled, and the PHP parsing stage set to output. So, I’m thinking that the EE tag should insert the text into the PHP function… This is part of an embedded template, and when I add the PHP code the embedded template does not show at all. (View Source shows that the DIV is not even there.)
The following DOES work in a template:
echo strip_tags("<b><ul><li>I am text</li></ul></b>", '<ul><li>');Here is the Debug output up to the next tag:
(0.141308) Tag: {exp:weblog:entries weblog="tas" limit="1"}
(0.141926) Closing Tag Found
(0.142240) Processing Tags
(0.142450) Module Tag: Weblog/entries
(0.142555) Including Files for Tag and Modules
(0.216386) Beginning Final Tag Data Processing
(0.216516) Calling Class/Method: Weblog/entries
(0.217810) -> Class Called: Weblog
(0.218130) -> Method Called: entries
(0.443655) -> Data Returned
(0.444280) Parsing Tags in Template
(0.444468) Tag: {exp:word_limit total="30"}Even this simple version fails to process:
Can anyone help out here? I’m sure it’s something I’m doing wrong, but for the life of me I can’t even begin to know what it might be.