Making code between < & > lower case?
Moderator: General Moderators
I tried replacing both with dots, only one with dots...
Code: Select all
$xhtml =preg_replace('/(.+)=(.+)/is','\\1="\\2"',$xhtml);Hmmm it's not liking that either... Is there a way to "allow" certain characters? The characters I need it to accept are:
:
/
_
-
I don't think there are anymore I would need...
I tried this code:
$xhtml =preg_replace('/(\w+)=([:\w]+)/is','\\1="\\2"',$xhtml);
and it showed this:
instead of this:
:
/
_
-
I don't think there are anymore I would need...
I tried this code:
$xhtml =preg_replace('/(\w+)=([:\w]+)/is','\\1="\\2"',$xhtml);
and it showed this:
Code: Select all
<a href="e;http:"e;//www.google.com>Code: Select all
<a href="e;http"e;://www.google.com>No they are different... One the quote is to the left of the colon the other is to the right...
Thanks for all you help.. I really do apprciate it
I add your code:
And I am getting results such as:
And:
Any ideas why?
Thanks for all you help.. I really do apprciate it
I add your code:
Code: Select all
$xhtml =preg_replace('/(\w+)=([\w:\/-_.]+)/is','\\1="\\2"',$xhtml);Code: Select all
<form action="e;http://www.google.com><p><img"e; height="e;106"e; src="e;images/zoom_img.jpg"e; hspace="e;7"e; width="e;90"e; align="e;left"e; />Code: Select all
<div id="e;testimonial>"e;