fixed the code examples#24370
Conversation
|
Hi @WriteMayur 👋 Thanks for your pull request! Your PR is in a queue, and a writer will take a look soon. We generally publish small edits within one business day, and larger edits within three days. Please ensure the propsed changes look good by building it first in your local environment. Refer to this contribution guide to get the site up and running in your local. If you really require a preview url, reach out to one of the writers and they will generate one for you. |
|
netlify build |
🚀 Netlify Preview Building!If the build is successful, the preview for this pull request will be available at the following URL (usually takes 10-20 minutes): |
|
netlify build |
| 6. In the <DNT>User input masking</DNT> section, clear all checkboxes, including <DNT>Mask all user input</DNT> and the specific input type boxes. | ||
|
|
||
| 7. Add the `nr-mask` class or `data-nr-mask` attribute to specific sensitive inputs in your HTML code that you want to keep masked. For example, if you want to mask credit card numbers but show all other text, add `nr-mask` to the credit card input field: | ||
| 7. Add the `nr-ignore` class to specific sensitive inputs in your HTML code that you want to keep masked. For example, if you want to mask credit card numbers but show all other text, add `nr-ignore` to the credit card input field: |
There was a problem hiding this comment.
nr-mask (and data-nr-mask) was the correct attribute before. The problem was that this attribute doesnt work for inputs. This should be reverted back to nr-mask/data-nr-mask. See next comment for clarity.
|
|
||
| <!-- This will be masked --> | ||
| <input type="text" class="nr-mask" id="creditCard" placeholder="1234 5678 9012 3456"> | ||
| <input type="text" class="nr-ignore" id="creditCard" placeholder="1234 5678 9012 3456"> |
There was a problem hiding this comment.
| <input type="text" class="nr-ignore" id="creditCard" placeholder="1234 5678 9012 3456"> | |
| <span class="nr-mask" id="creditCardDisplay"> | |
| 1234-5678-9012-3456 | |
| </span> |
This PR adds the new examples to unmask/mask the session replays