Is it possible to remove an HTML attribute from the rich text?

For example, below html elements have “style” attribute. That shoudl be removed from the html code. likewise, any other attributes a html element might have.

  • <span style="font-size:11pt"> <span style="line-height:115%"> <span style="font-family:Calibri. sans-serif"> <span style="font-size:12.0pt"> <span
    
    style="line-height:115%"> Frequency of sampling and testing</span></span></span></span></span></li>
    
  • @AllanOlivera Yes, we can remove and we need to make sure in its not impacting the rich text.

    @Lalit_Singh , What could the solution be?

    I managed to remove the attributes by calling an activity containing a java step with the code below:
    

    ClipboardPage pg_primaryPage=tools.getPrimaryPage();

    TextInput = pg_primaryPage.getString(propName);
    {
    TextOutput = TextInput.replaceAll(“(<\w+)[^>]*(>)”, “$1$2”);
    }

    pg_primaryPage.getProperty(propName).setValue(TextOutput.toString());