From f7d8fdca8405793fecb813307b7834f2a1c16920 Mon Sep 17 00:00:00 2001 From: Matias Senger Date: Sun, 17 Nov 2024 03:51:27 +0100 Subject: [PATCH] Add reference to JavaScript functionality (#204) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a21083..78c5eb2 100644 --- a/README.md +++ b/README.md @@ -556,7 +556,7 @@ 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 @@ -564,7 +564,7 @@ from dominate.util import raw td(raw('Example')) ``` -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="Example"` in JavaScript. SVG