Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
possibility of html output filtering
#2
Yes, all plugins have this at their disposition. Have a look at http://get-simple.info/wiki/plugins:hooks_filters.
Basically in your plugin file you just do:

PHP Code:
<?php
function myFilter($content) {
  
$regex '~<!--.*-->|<span class="testonly">.*</span>~'
  
return preg_replace($regex''$content);
}
add_filter('content''myFilter'); ?>
Reply


Messages In This Thread
possibility of html output filtering - by df8oe - 2015-07-22, 21:35:36
RE: possibility of html output filtering - by Tyblitz - 2015-07-24, 08:29:53



Users browsing this thread: 1 Guest(s)