Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.
I was writing something similar to for posting news updates on my website. I considered using forum style tags like the ones we use here at Anandtech instead and then converting them to HTML. Then I would parse the input for <'s and >'s to make sure to replace those with HTML character codes. That way, any HTML that I or anyone types, would end up looking like &bla;table&bla2; instead of </table>. The HTML code that you enter is rendered useless because the < and > sign's are converted to HTML character codes.
parse the input for anything matching /<([A-zA-z]+).*?>/ and then search for a corresponding /<\/$1>/ to close it. Make sure that the number of opening and closing brackets are the same.
Seems like a job for a stack. For every tag of a certain kind, push the stack, for every closing tag, pop back. If there are any stacks with something in them at the end, throw up an error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.