|
Hi,
I've created a form which allows user input. However, it grabs any < and > and replaces them with > and <, making it tougher to hack. But I still want users to have access to bold text or italic text.
I've thought about preg_matching everything between two tags, for example, everything between *bold* and */bold* will be bold, and everything between *italic and */italic* will be italic. But that takes time, greatly adding to the loading time of the pages.
I don't care about an extra second, but about 5 seconds is too much. Is there a faster way to do this?
Thanks,
-PG
|