From 956f4dc1dcd4bb1c315855ee797ff311f23b47a5 Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Sat, 28 Dec 2019 09:43:50 +1300 Subject: [PATCH] Reformat code examples for using an entity --- doc/FAQ/UsingAnEntity.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/FAQ/UsingAnEntity.md b/doc/FAQ/UsingAnEntity.md index 458b827..5e9f6bd 100644 --- a/doc/FAQ/UsingAnEntity.md +++ b/doc/FAQ/UsingAnEntity.md @@ -6,7 +6,7 @@ How can I use an entity like "nbsp"? If you try to do this: ```clj -[:div "hello" " " "there"] ;; <--- note: attempt to use an entity +[:div "hello" " " "there"] ;; <--- note: attempt to use an entity ``` then you will see the string for the entity. Which is not what you want. @@ -21,7 +21,7 @@ Instead you should do this: 2. Use it like this ... ```clj - [:div "hello" (gstring/unescapeEntities " ") "there"] + [:div "hello" (gstring/unescapeEntities " ") "there"] ``` **Note:** `unescapeEntities` relies on the DOM to produce a string with unescape entities;