How to anonymize sensitive page content

You can add a data-ls-disabled attribute to an HTML element. This attribute will anonymize the content, e.g. the surname will be replaced with asterisks, like in the example below:

Anonymizing data

The attribute is applied to all child elements, too. In the case of regular clicks and rage clicks, clicking on an anonymized element won’t reveal the text value.

Anonymize whole text content inside .user-info:


  <div data-ls-disabled class="user-info">
    <p>Logged as: <span>John Doe</span></p>
  </div>
          

Anonymize only sensitive element:


   <div class="user-info">
     <p>Logged as: <span data-ls-disabled>John Doe</span></p>
   </div>
          

Didn’t find an answer?

Try using the search engine or just contact us

hello@livesession.ioChat with us

Related topics

Start using LiveSession for free

Test all LiveSession features for 14 days, no credit card required.

checkmarkFree 14-day trial

checkmarkNo credit card required

checkmarkEasy setup