API Docs for: 0.25.0
Show:

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

(
  • inputString
)
String | Null
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 &amp; sequences with &, &lt; with < and &gt; with >. Template helper and ember-data field versions of this function are available.

Parameters:

  • inputString String
    A string value to be transformed

Returns:

String | Null: