Forum Discussion

johnsonda2's avatar
11 years ago
Solved

How to strip out all of the rich text formatting?

I would like to clean up the rich text formatting from posts on the community in post processing. What is the best approach in doing this?   For example, turn a post like this: Hello world   To ...
  • RobertD's avatar
    11 years ago

    Are you looking to physically strip out the formatting, or would hiding the effects of certain tags be adequate? If it is the latter, you can add inherit!important syling to the lia-message-body class in the CSS:

     

    #lia-body .lia-content .lia-message-body font , strong, b, strike {
    	font: inherit !important; font-family: inherit !important; 
    	font-weight: inherit !important;
    	font-size: inherit !important;
    	font-weight: inherit !important;
    	text-decoration: inherit !important;
    	color: inherit !important;
    	}

     Thanks to ChaviBonchev for pointing out this little trick.