I was able to get the text/content of pseudo-element content using window.getComputedStyle('element', ':before').getPropertyValue('content');. However, it returns a string enclosed in a double quote. I want it to return the actual string without the quotation so I tried to use valueOf() but it gave me the same result. I want to know if there's an existing method for that before I create my own. Thanks!