coview

Masking sensitive data

If your website has content which should not be copied to any screen cast or screenshot, you can give them the coview specific HTML attribute data-coview-private-content.

As a result, every text symbol gets replaced with an x character.

Example

The inner <div> element is annotated with this property:

<div>
  <div data-coview-private-content>
    <span>This text will be masked</span>
    <input type="text" value="Super secret value"/>
  </div>
  <span>This text will stay normal</span>
</div>

Before the page gets sent to the server, we automatically transform it into:

<div>
  <div data-coview-private-content>
    <span>Xxxx xxxx xxxx xx xxxxxx</span>
    <input type="text" value="Xxxxx xxxxxx xxxxx"/>
  </div>
  <span>This text will stay normal</span>
</div>

Implications

You can use this privacy-preserving technique to protect your users' confidential data and prevent exposing it to support staff or developers.

Updated 9 days ago


Masking sensitive data


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.