Download wp-calypso/client/lib/formatting/decode-entities.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/formatting/decode-entities.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/formatting/decode-entities.ts
-
curl -L -o decode-entities.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/formatting/decode-entities.ts
242 Bytes
| import decode from './decode'; | |
| export function decodeEntities( text: string ) { | |
| // Bypass decode if text doesn't include entities | |
| if ( 'string' !== typeof text || -1 === text.indexOf( '&' ) ) { | |
| return text; | |
| } | |
| return decode( text ); | |
| } | |