I need to be able to truncate some text that has HTML tags in it.
In pseudo code I need to:
substring(strip_tags('{myText}'), 0, 100);or something like this i.e. first remove the HTML tags and then truncate the result.
How do I overcome the order in which PHP is parsed to be able to get EE to accept the input from a channel and then perform the PHP functions?
I did try phpStringFun plugin but it didn’t like nested tags - there may be a better way?