LoginSignup
1
1

More than 5 years have passed since last update.

Perlで数値文字参照を含む文字列を通常の文字列に変換する。

Last updated at Posted at 2016-08-06

CPAN の HTML::Entitie 内のをdecode_entitiesメソッドを使用すればOK.

decode_entities($string);

下記のような文字列を

おはようございます😀

下記のように変換できる。

おはようございます😀

参考
http://perldoc.jp/docs/modules/HTML-Entities-3.55/Entities.pod

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1