SnippetsLabにいつも使う関数まとめるついでにQiitaにもメモっとく。 汎用関数Htmlタグを除去 /** *Htmlタグを除去 * @param {string} strHtmlタグが含まれた文字列(<h1>サンプル文字列</h1>) * @returns {string}Htmlタグ除去された文字列(サンプル文字列) */ const removeHtmlTag = function (str) { return String(str).replace(/<("[^"]*"|'[^']*'|[^'">])*>/g, ''); }; /** * URLをパースしてGET値のオブジェクトにする * @returns {{}} GET値のオブジェクトです。 */ const purseQuery = function () { const result = {}; cons

1リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く