Injecting HTML-formatet text

If you need to create nice formatet incidents in ServiceNow, you cant just update the data-field with an HTML formattet document. I found that styling via classes as shown below worked finde.

<style> 	 
.cbas *{border-style: solid;border-color: black;}
.cbas {border-collapse: collapse; WIDTH:100%;}
.cbas TH,TD{border-width: 2px;padding: 2px;}
.cbas TH{background-color:darkgray} 		 
.cbas TD{background-color:white; vertical-align: top} 		
</style>
<br />
Some tekst <b>bold</b>
<TABLE class="cbas"><tr><th>Brugernavn</th> <th>Fornavn</th> <th>Efternavn</th> <th>Stilling</th> <th>Telefonnr</th> <th>Firmakode</th> 			<th>Afd.kode</th> 			</tr><TR><TD>xxxxxxxx</TD><TD>M</TD><TD>Testesen</TD><TD>Advisor</TD><TD>782348923</TD><TD>IMTE</TD><TD>22</TD></TR></TABLE><BR /><BR /> 	 	<BR /> 	(V3-2019-SEP-02) 

The problem is that servicenow injects this code into its web page and if you just style the TABLE, TH and TD elements you overwrite the style used by servicenow.

Try it:https://www.w3schools.com/code/tryit.asp?filename=G7MMY7PWA1WA