note 72679 added to function.preg-replace

From: Date: Mon, 29 Jan 2007 17:32:45 +0000
Subject: note 72679 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-122324@lists.php.net to get a copy of this message
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); ---- 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 -- https://master.php.net/note/delete/72679/integrated Del: useless -- https://master.php.net/note/delete/72679/useless Del: bad code -- https://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 -- https://master.php.net/note/delete/72679/in+docs Del: other reasons-- https://master.php.net/note/delete/72679 Reject -- https://master.php.net/note/reject/72679 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122324) next »