How to escape the ` character in HTML?

Log In to Reply

Curiosity Technology Computers and Smartphones How to escape the ` character in HTML?

Tagged: 

  • I’m trying to add a terminal code snippet in a post here (Step 6). This is what I want to add it there: mysql instance kill command screenshot But when I post it, it appears like this: sudo killcat /var/run/mysqld/mysqld.pid. BBPress won’t escape the ` character. Tried using two backward slashes too. Any ideas?

  • After experimenting with <code> and <pre>, I don’t think it’s easy to escape it. I settled with using the HTML entity for the ` grave accent. Here you go! sudo kill `cat /var/run/mysqld/mysqld.pid`. Use <code> tags to wrap it instead of ` `.

    escape grave accent in bbpress

    This is how I added it!

You must be logged in to reply to this topic. Log In