mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Game/Text
* try to catch more html-like constructs in text blobs and escape them * ...<hic>!
This commit is contained in:
@@ -707,6 +707,9 @@ abstract class Util
|
|||||||
else
|
else
|
||||||
$text = strtr($text, ["\n" => $markdown ? '[br]' : '<br />', "\r" => '']);
|
$text = strtr($text, ["\n" => $markdown ? '[br]' : '<br />', "\r" => '']);
|
||||||
|
|
||||||
|
// escape fake html-ish tags the browser skipsh dishplaying ...<hic>!
|
||||||
|
$text = preg_replace('/<([^\s\/]+)>/iu', '<\1>', $text);
|
||||||
|
|
||||||
$from = array(
|
$from = array(
|
||||||
'/\|T([\w]+\\\)*([^\.]+)\.blp:\d+\|t/ui', // images (force size to tiny) |T<fullPath>:<size>|t
|
'/\|T([\w]+\\\)*([^\.]+)\.blp:\d+\|t/ui', // images (force size to tiny) |T<fullPath>:<size>|t
|
||||||
'/\|c(\w{6})\w{2}([^\|]+)\|r/ui', // color |c<RRGGBBAA><text>|r
|
'/\|c(\w{6})\w{2}([^\|]+)\|r/ui', // color |c<RRGGBBAA><text>|r
|
||||||
|
|||||||
Reference in New Issue
Block a user