Skip to content

Commit

Permalink
Update readme to include usage of util.raw method
Browse files Browse the repository at this point in the history
  • Loading branch information
davidthewatson authored and Knio committed Apr 10, 2017
1 parent 4e1c37c commit 1003792
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,3 +556,16 @@ print(d)
</body>
</html>
```

Embedding HTML
--------------

If you need to embed a node of pre-formed HTML coming from a library such as markdown or the like, you can avoid escaped HTML by using the raw method from the dominate.util package:

```
from dominate.util import raw
...
td(raw('<a href="example.html">Example</a>'))
```

Without the raw call, this code would render escaped HTML with lt, etc.

0 comments on commit 1003792

Please sign in to comment.