クリップボードの中のHtmlを参照文字に変更する。
cat hoge.html | python -c "import sys, html; print(html.escape(sys.stdin.read(), quote=False));"
quoteはデフォルトではTrue。Trueだと '、" が置換対象になる。
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
クリップボードの中のHtmlを参照文字に変更する。
cat hoge.html | python -c "import sys, html; print(html.escape(sys.stdin.read(), quote=False));"
quoteはデフォルトではTrue。Trueだと '、" が置換対象になる。
Register as a new user and use Qiita more conveniently
Go to list of users who liked