I'm been furiously trying to write something that will parse a block of html code, and will change certain values into something else. For instance, I may wish to change one word into another. I could od this... if I were using variables, but, since the pasted html is not a variable, I'm kinda stuck. Does anyone have any idea how I should go about this.
Okay, as an update I have it parsing using str_replace and searchiong the text as an array, but I have one problem left. The text being inputted it pure html, and when the script outputs, it outputs using extra php formatting. Meaning my html is now incorrectly filled with back slashes \ ... is there any way I can have php treat this information as html?