Commit d450fdaf599e37316cd6e8146f85ad80c3e9a821
1 parent
db65a851
postits controllet updates
Showing
1 changed file
with
7 additions
and
1 deletions
controllets/postit-container-controllet/postit-container-controllet.html
... | ... | @@ -260,7 +260,7 @@ |
260 | 260 | <li> |
261 | 261 | <a href="#"> |
262 | 262 | <h3>{{item.title}}</h3> |
263 | - <p>{{item.content}}</p> | |
263 | + <p>{{unescapeString(item.content)}}</p> | |
264 | 264 | </a> |
265 | 265 | </li> |
266 | 266 | </template> |
... | ... | @@ -333,6 +333,12 @@ |
333 | 333 | this.$.newTitle.innerHTML = "Title"; |
334 | 334 | this.$.newContent.innerHTML = "Content"; |
335 | 335 | |
336 | + }, | |
337 | + | |
338 | + unescapeString: function(string){ | |
339 | + return string | |
340 | + .replace(""", "\"", 'g') | |
341 | + .replace("'", '\'', 'g'); | |
336 | 342 | } |
337 | 343 | |
338 | 344 | }); | ... | ... |