mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Fix issue processwire/processwire-issues#1984
This commit is contained in:
@@ -1995,7 +1995,14 @@ class Sanitizer extends Wire {
|
|||||||
$value = preg_replace('!</li>\s*<li!is', "$options[separator]<li", $value);
|
$value = preg_replace('!</li>\s*<li!is', "$options[separator]<li", $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// replace single less than sign that's not accompanied with a greater than sign
|
||||||
|
// to something that looks like it, but that strip_tags() won’t strip.
|
||||||
|
// this is to prevent something like "5<10" from getting converted to "5"
|
||||||
|
if(strpos($value, '<') !== false && strpos($value, '>') === false) {
|
||||||
|
$value = preg_replace('/<([\w\d])/', '≺$1', $value);
|
||||||
|
}
|
||||||
|
|
||||||
// remove tags
|
// remove tags
|
||||||
$value = trim(strip_tags($value));
|
$value = trim(strip_tags($value));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user