html_decode

HTML アンエスケープ

html_decode "src", dst

"src" : HTML エンティティを含む文字列
dst   : デコード結果を受け取る変数

(プラグイン / モジュール : iron_url.hsp)

解説

& < > " ' の名前付き実体と、&#NNN; 形式の
数値文字参照 (0~255) をデコードします。未知の実体はそのまま残します。

関連項目

html_encodeHTML エスケープ(iron_url.hsp)

情報

プラグイン / モジュールiron_url.hsp
バージョン1.0
作成日2026-04-15
著作者IronHSP / iron_url
URLhttps://github.com/inovia/IronHSP
備考iron_url.hsp は C# の System.Net.WebUtility.UrlEncode / UrlDecode
System.Web.HttpUtility.HtmlEncode / HtmlDecode に相当する関数群を
Pure HSP で実装したモジュールです。外部 DLL は不要です。

#include "iron_url.hsp"

サポート:
URL Percent-Encoding (RFC 3986、unreserved 文字は非エスケープ)
application/x-www-form-urlencoded ("+" = space 変換) 対応
HTML エスケープ 5 種 (& < > " ') + 数値文字参照デコード
クエリ文字列パース (?a=1&b=2 を keys/vals 配列に分解)
タイプ拡張命令
グループiron_url ― HTML
対応環境
  • その他 : Win32 / Win64
hs ファイルhsphelp\iron_url.hs