You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,6 @@ A TypeScript-based HTML template parser that provides a fluent API for manipulat
21
21
22
22
## Features
23
23
24
-
## Features
25
-
26
24
- 🔄 Fluent API for HTML manipulation
27
25
- 🎯 Precise control over HTML document structure
28
26
- 📦 Easy integration with webpack
@@ -160,7 +158,7 @@ const modifiedHtml = parser
160
158
-`upsertBodyScripts(scripts: ScriptItem[])`: Updates or inserts script tags in the body
161
159
-`serialize()`: Converts the modified document back to HTML string
162
160
163
-
####`parseTemplate` Function
161
+
### `parseTemplate` Function
164
162
165
163
A utility function that provides a convenient way to parse and modify HTML templates in a single step.
166
164
@@ -178,7 +176,7 @@ The `parseTemplate` function is a shorthand for creating a `TemplateParser` inst
178
176
179
177
This function is particularly useful when you want to perform all template modifications in a single operation without manually chaining multiple method calls.
0 commit comments