Download wp-calypso/client/lib/formatting/strip-html.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/formatting/strip-html.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/formatting/strip-html.js
-
curl -L -o strip-html.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/formatting/strip-html.js
298 Bytes
| import stripTags from 'striptags'; | |
| /** | |
| * Strips HTML from a string. Does not handle tags nested in attribute strings. | |
| * @param {string} string The string to strip tags from | |
| * @returns {string} The stripped string | |
| */ | |
| export function stripHTML( string ) { | |
| return stripTags( string ); | |
| } | |