We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca977af commit 3b773feCopy full SHA for 3b773fe
berry/utils/HTMLHelper.php
@@ -48,6 +48,16 @@ public function URLFriendly(string $string): string
48
return strtolower(trim($string, '-'));
49
}
50
51
+ /**
52
+ * Returns an HTML-safe version of the given string.
53
+ * @param string $str The input string to be escaped.
54
+ * @param string $encoding (optional) The character encoding to use. Defaults to 'UTF-8'.
55
+ * @return string The HTML-escaped version of the input string.
56
+ */
57
+ public function MakeHTMLSafe($str, $encoding = 'UTF-8')
58
+ {
59
+ return htmlspecialchars($str, ENT_QUOTES, $encoding);
60
+ }
61
62
63
?>
berry/version.php
@@ -23,6 +23,6 @@
23
SOFTWARE.
24
*/
25
26
-// Version 1.0.6
+// Version 1.0.7
27
28
0 commit comments