PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Literally all I need to do is remove a few html tags. This is a small modification to existing software so a working version of strip_selected_tags would work perfect. Htmlpurifier is a big heavy for this simple of a task.
Hockey wrote:Without digging into you code, how exactly is your implementation different from strip_tags()???
Because strip_tags only allows you to specify tags which should not be stripped.
But, with the correct regex, your function shouldn't be too hard to make. Google a bit on regex for removing HTML tags, then modify to work for specific tags.