Cleanse input to be displayed in html element

I am using html elements to display dynamic width text, what characters do i need to replace to stop custom html, css & script being entered by the user? @emmanuel
it would be good if there was an option for text:do not run as html

.message {
    max-width: 324px;
    word-wrap: break-word;
    padding:10px 15px;
    font-family:Inter UI Bold;    
    font-size:14px;
    line-height:1.6;
	position:relative;
	padding:10px 15px;
	color:#1F2D3D; 
	background:#EFF2F7;
	border-radius:12px;
	float: left !important;
		
	&:before {
		content:"";
		position:absolute;
	
	}

	&:after {
		content:"";
		position:absolute;

	}
}

This topic was automatically closed after 70 days. New replies are no longer allowed.