/**
 * @since Last modified: 2023-11-16 00:33:33
 * @function purifyHtml
 * @description Purify HTML string. Clear all labels, change lines, and merge multiple spaces into a space.
 * @param {string} str  - HTML string
 * @returns {string}  - Return Purified pure text string
 * @see {@link https://codepen.io/axui/pen/GRzMbxQ|demo @ codepen}
 * @example
 * ax.purifyHtml('   <i>I</i> l  ove    you    ');
 * <!--return 'I love you'-->
 */
'use strict';
import trim from './trim';
const purifyHtml = (str: string):string => trim(str.replace(/<[^>]+>/g, ''));
export default purifyHtml;
