method escapeSquotes documentation in bbn\Str
Escapes the string in quotes.
Example
X::dump(\bbn\Str::escapeSquotes("Today's \"newspaper\""));
// (string) "Today\'s "newspaper""
function($st, $as_html = false)
{
if ($as_html) {
return str_replace("'", ''', $st);
}
return addcslashes(self::cast($st), "'\\\r\n\t");
}
Escapes the string in quotes. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions