List Info

Thread: note 72679 added to function.preg-replace




note 72679 added to function.preg-replace
user name
2007-01-29 11:32:45
if you need to replace quotes with " in an html
string without ruining the html, try this (thanks to Sergei
at regexadvice.com for the help on the expression):

$string_preg_conv=preg_replace("/"(?=[^<>]*
<)/","&quot;", $string);
----
Server IP: 69.147.83.197
Probable Submitter: 81.132.69.59
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php

Edit        -- https://master
.php.net/note/edit/72679
Del: integrated  -- h
ttps://master.php.net/note/delete/72679/integrated
Del: useless     -- http
s://master.php.net/note/delete/72679/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/72679/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/72679/spam
Del: non-english -- 
https://master.php.net/note/delete/72679/non-english
Del: in docs     -- http
s://master.php.net/note/delete/72679/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/72679
Reject      -- https://mast
er.php.net/note/reject/72679
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


note 72679 deleted from function.preg-replace by nlopess
user name
2007-01-31 07:26:43
Note Submitter: neil at weblator 

----

if you need to replace quotes with &quot; in an html
string without ruining the html, try this (thanks to Sergei
at regexadvice.com for the help on the expression):

$string_preg_conv=preg_replace("/"(?=[^<>]*
<)/","&quot;", $string);

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )