Skip to content

fixed the code examples#24370

Open
WriteMayur wants to merge 2 commits into
developfrom
settingsfix
Open

fixed the code examples#24370
WriteMayur wants to merge 2 commits into
developfrom
settingsfix

Conversation

@WriteMayur

Copy link
Copy Markdown
Contributor

This PR adds the new examples to unmask/mask the session replays

@WriteMayur WriteMayur self-assigned this Jun 10, 2026
@WriteMayur WriteMayur added content requests related to docs site content from_tw Identifies issues/PRs from Tech Docs writers labels Jun 10, 2026
@github-actions

Copy link
Copy Markdown

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.

@WriteMayur

Copy link
Copy Markdown
Contributor Author

netlify build

@WriteMayur WriteMayur removed the request for review from cbehera-newrelic June 10, 2026 07:01
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

🚀 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):

https://settingsfix--docs-website-netlify.netlify.app

@WriteMayur

Copy link
Copy Markdown
Contributor Author

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:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<input type="text" class="nr-ignore" id="creditCard" placeholder="1234 5678 9012 3456">
<span class="nr-mask" id="creditCardDisplay">
1234-5678-9012-3456
</span>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content requests related to docs site content from_tw Identifies issues/PRs from Tech Docs writers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants