I want to make a help system where topics are written in html. I want to include a search. But when I search the help text, the search can’t distinguish the normal text from html tags, css id’s classes, etc.
Is there an opposite of CHtml::encode() that returns the plain text from a html code? The result must be something like when I copy (formatted) text from browser and paste into notepad.
Eliminating the text between < and > with regular expression replace would be good enough?