In an effort to learn Angualr.js, I'm trying to collect a Wordpress post, using the plugin WP REST API and display it on a template in its correct format. I've got the post displaying the correct way using sanitize and ng-bind-html.
However, there are code blocks that I had originally highlighted (using WP Code Prettify) within the post. For example:
The question is how do I get the original post to look just like the image above, using ng-bind-html? Or is there another, more efficient way to do this?
Aucun commentaire:
Enregistrer un commentaire