mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-26 00:10:55 +01:00
Revert "markup modifiers: make it even harder to escape"
This reverts commit d7ea47a91f
.
This commit is contained in:
parent
07f8aa8c4c
commit
164d0e6e3b
@ -1623,7 +1623,7 @@ function markup(&$body, $track_cites = false) {
|
||||
}
|
||||
|
||||
function escape_markup_modifiers($string) {
|
||||
return preg_replace('@<tinyboard ([\w\s]+)>@m', '<tinyboard escape $1>', $string);
|
||||
return preg_replace('@<tinyboard ([\w\s]+)>(.+)</tinyboard>@m', '<tinyboard escape $1>$2</tinyboard>', $string);
|
||||
}
|
||||
|
||||
function utf8tohtml($utf8) {
|
||||
|
Loading…
Reference in New Issue
Block a user