Commit d450fdaf599e37316cd6e8146f85ad80c3e9a821

Authored by Luigi Serra
1 parent db65a851

postits controllet updates

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("&quot;", "\"", 'g')
  341 + .replace("&#039;", '\'', 'g');
336 342 }
337 343  
338 344 });
... ...