fix-special-char-helper Class
Apply the fix-special-char
utility function to clean up malformed text sent from the server.
Usage example:
This is text we want to fix: {{fix-special-char 'Now & then'}}
Item Index
Methods
Methods
fixSpecialChar
(
String | Null
-
inputString
This function is useful for fixing a bad API behavior. In certain cases the server will insert HTML escape
sequences into text, and this will replace
&
sequences with &
, <
with <
and >
with >
.
Template helper and ember-data field versions of this function are available.
Parameters:
-
inputString
StringA string value to be transformed
Returns:
String | Null: