File size: 298 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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 );
}