View Full Version : The PHP tag strips out preg replace...
This code:
$text = preg_replace("/Hello/i", "Hi there", $text");
Ends up looking like this:
$text = preg_replace("/Hello/i", "Hi there", $text");
I noticed this a couple days ago.
Thank you in advance. :)
That's odd... :confused:
Look at this post: https://vborg.vbsupport.ru/showthread.php?postid=379164#post379164
Here it is...
if($newthread) {
$text = preg_replace("/IMG/i", "", $text);
$text = preg_replace("/img/i", "", $text);
}
filburt1
04-13-2003, 07:59 PM
Looks fine to me, except it's not color-coding it.
I am using the Purple style.
This is what the contents of post #3 look like:
if($newthread) {
$text = "/IMG/i", "", $text);
$text = "/img/i", "", $text);
}
Dean C
04-14-2003, 09:20 AM
I saw it stripping a double quote in your first post *confused* :)
Xenon
04-14-2003, 03:39 PM
hmm, i don't see anything wrong here, but nevertheless i remember the devs working on a solution and also had some problems...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.