Skip to content

Commit

Permalink
Add reference to JavaScript functionality (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
SengerM authored Nov 17, 2024
1 parent 30da370 commit f7d8fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,15 +556,15 @@ print(d)
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:
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.
Without the raw call, this code would render escaped HTML with lt, etc. The behavior of the previous block of code is the same as `td_element.innerHTML="<a href="example.html">Example</a>"` in JavaScript.


SVG
Expand Down

0 comments on commit f7d8fdc

Please sign in to comment.