Hi everyone. I've not played with Evo a lot, and I'm a front-end guy so my PHP skills are quite minimal. However, I'm trying to write a custom snippet to strip all link tags from the [*content*] placeholder in one of my templates. All other html tags should remain. Here is my attempt thus far:
The snippet call:
[!strip_links? &string=`[*content*]`!]
The strip_links snippet:
<?php
$stringtostrip = $scriptProperties['string'];
$stringtostrip =
preg_replace(array('"<a href(.*?)>"', '"</a>"'), array('',''), $stringtostrip);
?>
Please forgive if I'm WAY off, as I said, my skills are not the greatest. If this was Revo, I'd just use an output filter.