8 lines
231 B
JavaScript
8 lines
231 B
JavaScript
/**
|
|
* Returns string with inline style tag stripped out
|
|
* @returns string
|
|
*/
|
|
export function stripRteStyle(stringWithStyleTag) {
|
|
const regexExp = /[\s*]style="(.*?)"/g;
|
|
return stringWithStyleTag.replace(regexExp, '');
|
|
}
|