mirror of
https://github.com/flarum/framework.git
synced 2025-03-15 00:05:12 +08:00
parent
b8ba44b274
commit
ad3f4ff718
@ -41,7 +41,12 @@ export function getPlainContent(string) {
|
||||
return dom.text();
|
||||
}
|
||||
|
||||
getPlainContent.removeSelectors = ['blockquote'];
|
||||
/**
|
||||
* An array of DOM selectors to remove when getting plain content.
|
||||
*
|
||||
* @type {Array}
|
||||
*/
|
||||
getPlainContent.removeSelectors = ['blockquote', 'script'];
|
||||
|
||||
/**
|
||||
* Make a string's first character uppercase.
|
||||
|
Loading…
x
Reference in New Issue
Block a user