Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Remove Content after ( Re: Remove Content after (

#122190
rosspenman
Participant

You would have to use JavaScript or some sort of server-side language to accomplish this. It can’t be done with CSS alone.

JavaScript:

element.innerHTML = element.innerHTML.replace(/((.*?))/g, ”);

PHP:

echo preg_replace(‘/((.*?))/g’, null, $text);