mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-27 09:42:48 +00:00
refactor: remove unused function
This commit is contained in:
parent
6d3b905200
commit
df9897441a
|
@ -4,18 +4,6 @@
|
||||||
* @class Util
|
* @class Util
|
||||||
*/
|
*/
|
||||||
class Util {
|
class Util {
|
||||||
/**
|
|
||||||
* Extracts text content from the given HTML string.
|
|
||||||
*
|
|
||||||
* @param {string} html - The HTML string to extract text content from.
|
|
||||||
* @return {string} The extracted text content.
|
|
||||||
*/
|
|
||||||
static extractTextFromHtml( html ) {
|
|
||||||
const tmp = document.createElement( 'div' );
|
|
||||||
tmp.innerHTML = html;
|
|
||||||
return tmp.textContent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the size (width or height) of the provided element.
|
* Returns the size (width or height) of the provided element.
|
||||||
* Required to calculate the size of hidden elements (e.g. nested tabs)
|
* Required to calculate the size of hidden elements (e.g. nested tabs)
|
||||||
|
|
Loading…
Reference in a new issue