Add options to mask texts (#540)
* feat: add options to mask texts * feat: add the default mask function * refactor: rename options to identify the difference between mask text and mask input * test: add tests about masking * doc: add options about masking * chore: bump up rrweb-snapshot version
This commit is contained in:
20
test/html/mask-text.html
Normal file
20
test/html/mask-text.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
<title>Mask text</title>
|
||||
</head>
|
||||
<body>
|
||||
<p class="rr-mask">mask1</p>
|
||||
<div class="rr-mask">
|
||||
<span>mask2</span>
|
||||
</div>
|
||||
<div data-masking="true">
|
||||
<div>
|
||||
<div>mask3</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user