Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
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 );
}