We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
perch_template - stripping html tags
I am using a list/detail page on a website, so the 'detail' is provided by perch_content_custom. As I don't want to echo the result straight away (I want to store it in a variable), I am using the "skip-template" option.
I then pass the variable to perch_template, to run against a template (again, I don't want this to echo immediately, so it's passed to a variable).
One of the fields contains text styled by textile, so when the data is passed through perch_template, it is formatted with html tags. In this instance, I don't want the html tags, so in my template I have added the "striptags" option. However, the resulting output still has the html. Is this expected behaviour? Or should perch_template be honouring those attributes?
Setting the "raw" option on perch_content_custom obviously removes html tags, but I end up with underscores etc in the text from textile.
Want to reply to this thread?Login with Perch