* zin: use html to parse history comments.
This commit is contained in:
+6
-1
@@ -115,7 +115,12 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
function uncamelize($camelCaps, $separator = '-')
|
||||
function uncamelize(string $camelCaps, string $separator = '-'): string
|
||||
{
|
||||
return strtolower(preg_replace('/([a-z])([A-Z])/', "$1" . $separator . "$2", $camelCaps));
|
||||
}
|
||||
|
||||
function isHTML(string $string): bool
|
||||
{
|
||||
return $string !== strip_tags($string) ? true : false;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ class history extends wg
|
||||
div
|
||||
(
|
||||
setClass('comment-content mt-2 ml-6 p-2.5'),
|
||||
$comment,
|
||||
isHTML($comment) ? html($comment) : $comment,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user