I want to be able to modify an anchor tag with php after it is submitted by a user via a form. For instance, the text editor I'm implementing allows the addition of links, but I want to add a class to that link/anchor tag after it is submitted, before it goes into the database. Is this possible?
So if the anchor tag submitted is:
I would like it to be saved into the database as:
<a href="www.somesite.com" class="normal">www.somesite.com</a>
Can anyone help me with this? I've done a search on Google and all I get are results showing how to print out html with php. That's obviously not what I want.