File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ export as namespace striptags
2+
3+ export = striptags
4+
5+ /**
6+ * Creates an array of elements split into groups the length of size. If collection can’t be split evenly, the
7+ * final chunk will be the remaining elements.
8+ *
9+ * @param html The text to process.
10+ * @param allowedTags Tags which aren't removed
11+ * @param tagReplacement Removed tags are replaced with this
12+ * @return Returns the input string, sans any html tags that weren't allowed
13+ */
14+ declare function striptags (
15+ html : string ,
16+ allowedTags ?: string | string [ ] ,
17+ tagReplacement ?: string
18+ ) : string
19+
20+ declare namespace striptags {
21+ export const init_streaming_mode : (
22+ allowedTags ?: string | string [ ] ,
23+ tagReplacement ?: string
24+ ) => ( html : string ) => string
25+ }
Original file line number Diff line number Diff line change 2222 " strip" ,
2323 " tags"
2424 ],
25+ "typings" : " index.d.ts" ,
2526 "scripts" : {
2627 "test" : " mocha" ,
2728 "coverage" : " istanbul cover _mocha -- -R spec"
You can’t perform that action at this time.
0 commit comments