I would like to know If I can use a php function on a variable that contains delimiters like ' or ". I’m receiving a text content from my database and I would like to use: strip_tags($desc); on it but it does not work.
Here is an example of what it can contain using var dump:
string(1039) ""txt <a href=""/txt.php"" class=""txt"">txt</a> . txt'txt <a href=""/txt.php"" class=""txt"">txt</a> txtxtxtxt& " "
I guess you want to remove all tags. You should use the builtin function
strip_tags()instead.