Skip to content
  • home
  • portfolio
  • web design journal
  • blog
    • adventure
    • san diego
    • projects
    • website design
Blog Web Dev HTML and Encoded Characters with Handlebars

HTML and Encoded Characters with Handlebars

By Forrest Smith - Drempd.com

As soon as I updated some of the templating on one of my websites to handlebars, HTML code wasn’t being rendered, and I recieved odd characters in the output, like:
 

My Blog Name » Blog Sub Title

The solution to this is instead of using the standard double bracket to insert the content, use triple brackets (I don’t know why, must be telling the templating engine to render the character codes as html):
 

<h1>{{{Blog-Title}}}</h1>

Once I figured this out, the solution is easy.  Unfortunately it took some time to track down, since I first suspected that the issue was caused with some of the php code somewhere, the encoding of the database, etc…

Posted on September 14, 2013August 26, 2022 in Web Dev
  • Adventure

    • adventure
    • gravelgrinding
    • hiking
    • running
  • The Built Environment

    • architecture
    • urbanity
  • Locations

    • san diego
    • portland
  • Freelance Life

    • freelancing
    • productivity
  • Web Dev

    • css
    • entrepreneurship
    • git
    • handlebars
    • html
    • inkscape
    • photoshop
    • php
    • sass
    • web design
    • web development
    • saphire

drempd | san diego, ca


home contact

adventures san diego urbanity and architecture projects stream website design

portfolio resume san diego web design freelance web designer

custom web design responsive web design website maintenance