jamesp0tter
Programmer
well, i asked for help some days ago regarding string replacement in thread434-520275 . the solution provived was a very good work-around to what i was working in.. i needed to replace smilies only if they were not inside html tags, so i'm replacing them for "
" and no "
". that'll do it for now.
BUT
i started a new project, and i now have the same problem, but in a little more complicated form:
i need to replace ALL TEXT that is not inside HTML tags "< >"
for example, if i replace all "a"'s for "b"'s , i would have <b> tag insted of an <a> ones.
like, i've got "<a href=\"someplace.php\">aaaa</a>" i need to replace the "aaaa" only, not the ones that are inside the "< >" tags.
any ideas are much apreciated!
Thx in advance !
BUT
i started a new project, and i now have the same problem, but in a little more complicated form:
i need to replace ALL TEXT that is not inside HTML tags "< >"
for example, if i replace all "a"'s for "b"'s , i would have <b> tag insted of an <a> ones.
like, i've got "<a href=\"someplace.php\">aaaa</a>" i need to replace the "aaaa" only, not the ones that are inside the "< >" tags.
any ideas are much apreciated!
Thx in advance !