Wouldn't it be better not to echo out all that html? Chances are you don't need to, so escape from PHP mode back into HTML, and write your HTML... the way it should be...
On Jun 2, 2007, at 6:38 PM, Tobias Jung wrote:
At 8:45 Uhr -0700 31.05.2007, luismcdougall wrote:
I find my self wrapping html code very frequently. It is a pain but I do not know how to work with regex,
Basically I need to use echo "" to wrap the html code and escape all of the other " in it.
can someone help me?
Sorry I can't help you, but wouldn't it be better to use echo '' (single quotation marks) and leave the HTML " (double quatation marks) untouched?
Example: Before: <a href="some_file.php" title="this is a link">click here</a> After: echo '<a href="some_file.php" title="this is a link">click here</a>';
Kind regards, Tobias Jung
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate