Skip to content

ProtoString fromEntity() Method

Seth Clydesdale edited this page May 23, 2015 · 2 revisions

<< Back to Conversion Methods

Example

Decoding HTML entity numbers into a whole character.

'&#38;&#36;&#9829;&#9824;&#9827;'.fromEntity(); // returns '&$♥♠♣'

Description

The fromEntity() method was used to decode all HTML entity numbers in a string. This method was dropped, so it's recommended to use decodeAs() instead.

Syntax

String.fromEntity();

Information

You can find the source for the old conversion methods here.

Clone this wiki locally