Comparing version 4.0.2 to 4.0.3
@@ -144,2 +144,9 @@ let QuerySelector = require('./query.selector') | ||
} | ||
/** | ||
* @example | ||
* $('div').replaceWith('<view>1</view>') | ||
*/ | ||
replaceWith (content) { | ||
return this.before(content).remove() | ||
} | ||
@@ -146,0 +153,0 @@ /** |
{ | ||
"name": "htmldom", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Simplified html handle in nodejs", | ||
@@ -5,0 +5,0 @@ "main": "htmldom.js", |
@@ -124,2 +124,3 @@ # htmldom — Simplified html or xml handle in nodejs | ||
``` | ||
* replaceWith(content) | ||
* append(content) | ||
@@ -130,2 +131,3 @@ * prepend(content) | ||
```js | ||
$('div').replaceWith('<view></view>') | ||
$('').append('<h3>title'); | ||
@@ -132,0 +134,0 @@ $('').before('<h3>title'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119782
46
4344
238