Platforms to show: All Mac Windows Linux Cross-Platform

StringIsHTMLreadyMBS(s as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Test whether a string is html safe.
Example
Function html(t as string) As string
#pragma disablebackgroundtasks
#pragma disableautowaitcursor

if StringIsHTMLreadyMBS(t) then
Return t
else
t=EncodingToHTMLMBS(t)
Return ConvertEncoding(t,encodings.UTF8)
end if
End Function

String which are not html safe, need to go through EncodingToHTMLMBS.
Using this function saves a lot of time!

Returns true for strings which are html safe.

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...