You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
An implementation of PHP's strip_tags in Node.js. Note: v3+ targets ES6, and is therefore incompatible with the master branch of uglifyjs. You can either: use babili, which supports ES6 use the harmony branch of uglifyjs stick with the 2.x.x branch Features Fast Zero dependencies 100% test code coverage No unsafe regular expressions Installing npm install striptags Basic Usage var striptags = requ
stripgtags は npm 又は yarnを使って入手します。また、ブラウザから使う場合はCDNを通してライブラリを読み込むことも可能です。 # npm npm install striptags --save # yarn yarn add striptags # cdn *IE 11以上 https://unpkg.com/striptags striptags の使い方は簡単で、PHPの ' strip_tags ' 関数と 使い方は変わりません。 第一引数に元となる文字列を指定すると、HTMLタグが消去されます。 // ブラウザの場合、そのまま striptags()関数が呼び出せます const striptags = require("striptags"); let baseHtml = "<div href='someClass'>" + "<strong>strip
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く