Lets say I had some HTML code, such as:
"Hello, my <strong>name</strong> is Nanoo."
How could I replace the <strong>
tag with a string?
For example:
"Hello, my **name** is Nanoo."
(Replaces the <strong>
tag with **
)
I could probably use the replace()
function, however I want to do this efficiently.
Thanks for any help.