Jump to content

Html Tag in Php Variable


drkscrt57

Recommended Posts


I'm trying to get php to search a file for the closing row tags of an html table, I'm getting snagged when I try to save the tag as a variable:
$unique_end = "</TR>";

However it seems that the '/' is conflicting the string somehow. But when I add an escape command such as single quotes so that the line looks like this: $unique_end = "{<'/'TR>}" the single quotes get saved into the string. Can anybody help me get around the forward slash without including extra characters?

Thanks
Link to comment
https://forums.phpfreaks.com/topic/18238-html-tag-in-php-variable/
Share on other sites

When you escape a string in mysql, for instance when you have the / symbolw hich is used to escape the character, if you want to escape the escape it's // then it said something about escaping the escape to the escape it's like //// to get that to escape right, by what i have read so try // if it doesn't work try ////
  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.