encode()

Type : public method

Support : 0.7

Return : String

  • "<" 처럼 Html 태그를 "&lt;" 처럼 변형된 태그 문자열로 반환

Methods

  • encode( str ) : Stringver 0.7~

    • str : String
      변환할 문자열

Example

$B.html.encode('<meta charset="utf-8">');
// "&lt;meta&nbsp;charset=&quot;utf-8&quot;&gt;"