Select to view content in your preferred language

Help With Embedded HTML - Can't Find the Unsupported Part(s)

570
2
Jump to solution
07-06-2023 07:22 AM
Labels (1)
MattChomicky1
Occasional Contributor

I'm having an issue with an HTML table I'm trying to place into an Embed widget showing a warning that "This embedded HTML code will go out of support soon". 

I have checked the reference on supported HTML and supported tags, and cannot find anything that I'm using in my code that is not listed in the supported tags or attributes. 

Maybe I just need another pair of eyes on it, or a sanity check that what I'm trying to do should be supported.

Here is the full code I was trying to use originally:

<style>
	h3,
	p {
		color: white
	}
</style>
<table align="center" border="1" cellpadding="0" cellspacing="0" style="width:100%;">
	<h3 style="text-align: center"><strong>Proposed PFAS MCLs</strong></h3>
	<tr>
		<th>
			<p style="text-align: center;">Contaminant</p>
		</th>
		<th>
			<p style="text-align: center;">MCL (ng/L)</p>
		</th>
		<th>
			<p style="text-align: center;">Chemical Abstract Services Registry Number (CASRN)</p>
		</th>
	</tr>
	<tr>
		<td>
			<p style="text-align: center;">Perfluorononanoic Acid (PFNA)</p>
		</td>
		<td>
			<p style="text-align: center;">6</p>
		</td>
		<td>
			<p style="text-align: center;">375-95-1</p>
		</td>
	</tr>
	<tr>
		<td>
			<p style="text-align: center;">Perfluorooctanoic Acid (PFOA)</p>
		</td>
		<td>
			<p style="text-align: center;">8</p>
		</td>
		<td>
			<p style="text-align: center;">335-67-1</p>
		</td>
	</tr>
	<tr>
		<td>
			<p style="text-align: center;">Perfluorooctane Sulfonic Acid (PFOS)</p>
		</td>
		<td>
			<p style="text-align: center;">16</p>
		</td>
		<td>
			<p style="text-align: center;">1763-23-1</p>
		</td>
	</tr>
	<tr>
		<td>
			<p style="text-align: center;">Perfluorohexane Sulfonic Acid (PFHxS)</p>
		</td>
		<td>
			<p style="text-align: center;">51</p>
		</td>
		<td>
			<p style="text-align: center;">355-46-4</p>
		</td>
	</tr>
	<tr>
		<td>
			<p style="text-align: center;">Hexafluoropropylene Oxide Dimer Acid (HFPO-DA)<br />
				(a GenX compound)</p>
		</td>
		<td>
			<p style="text-align: center;">370</p>
		</td>
		<td>
			<p style="text-align: center;">13252-13-6</p>
		</td>
	</tr>
	<tr>
		<td>
			<p style="text-align: center;">Perfluorobutane Sulfonic Acid (PFBS)</p>
		</td>
		<td>
			<p style="text-align: center;">420</p>
		</td>
		<td>
			<p style="text-align: center;">375-73-5</p>
		</td>
	</tr>
	<tr>
		<td>
			<p style="text-align: center;">Perfluorohexanoic Acid (PFHxA)</p>
		</td>
		<td>
			<p style="text-align: center;">400,000</p>
		</td>
		<td>
			<p style="text-align: center;">307-24-4</p>
		</td>
	</tr>
</table><br />
<div>Source: <i>PFAS Response - PFAS MCLs and Drinking Water. </i><a
		href="https://www.michigan.gov/pfasresponse/0,9038,7-365-95571_99970---,00.html"
		target="_blank">https://www.michigan.gov/pfasresponse/0,9038,7-365-95571_99970---,00.html</a></div>

 

I also tried making a pass at it and removing certain tags and attributes that maybe weren't supported:

<table align="center" border="1" cellpadding="0" cellspacing="0" style="width:100%;">
	<h3 style="text-align: center"><strong>Proposed PFAS MCLs</strong></h3>
		<tr>
			<th>
			<p style="text-align: center;">Contaminant</p>
			</th>
			<th>
			<p style="text-align: center;">MCL (ng/L)</p>
			</th>
			<th>
			<p style="text-align: center;">Chemical Abstract Services Registry Number (CASRN)</p>
			</th>
		</tr>
		<tr>
			<td>
			<p style="text-align: center;">Perfluorononanoic Acid (PFNA)</p>
			</td>
			<td>
			<p style="text-align: center;">6</p>
			</td>
			<td>
			<p style="text-align: center;">375-95-1</p>
			</td>
		</tr>
		<tr>
			<td>
			<p style="text-align: center;">Perfluorooctanoic Acid (PFOA)</p>
			</td>
			<td>
			<p style="text-align: center;">8</p>
			</td>
			<td>
			<p style="text-align: center;">335-67-1</p>
			</td>
		</tr>
		<tr>
			<td>
			<p style="text-align: center;">Perfluorooctane Sulfonic Acid (PFOS)</p>
			</td>
			<td>
			<p style="text-align: center;">16</p>
			</td>
			<td>
			<p style="text-align: center;">1763-23-1</p>
			</td>
		</tr>
		<tr>
			<td>
			<p style="text-align: center;">Perfluorohexane Sulfonic Acid (PFHxS)</p>
			</td>
			<td>
			<p style="text-align: center;">51</p>
			</td>
			<td>
			<p style="text-align: center;">355-46-4</p>
			</td>
		</tr>
		<tr>
			<td>
			<p style="text-align: center;">Hexafluoropropylene Oxide Dimer Acid (HFPO-DA)
			(a GenX compound)</p>
			</td>
			<td>
			<p style="text-align: center;">370</p>
			</td>
			<td>
			<p style="text-align: center;">13252-13-6</p>
			</td>
		</tr>
		<tr>
			<td>
			<p style="text-align: center;">Perfluorobutane Sulfonic Acid (PFBS)</p>
			</td>
			<td>
			<p style="text-align: center;">420</p>
			</td>
			<td>
			<p style="text-align: center;">375-73-5</p>
			</td>
		</tr>
		<tr>
			<td>
			<p style="text-align: center;">Perfluorohexanoic Acid (PFHxA)</p>
			</td>
			<td>
			<p style="text-align: center;">400,000</p>
			</td>
			<td>
			<p style="text-align: center;">307-24-4</p>
			</td>
		</tr>
</table>
<div>Source: <i>PFAS Response - PFAS MCLs and Drinking Water. </i><a href="https://www.michigan.gov/pfasresponse/0,9038,7-365-95571_99970---,00.html">https://www.michigan.gov/pfasresponse/0,9038,7-365-95571_99970---,00.html</a></div>

 

Any help on how I can get this warning to stop is appreciated!

 

0 Kudos
1 Solution

Accepted Solutions
TonghuiMing
Esri Regular Contributor

@MattChomicky1 

The warning indicates that something in this code will be sanitized.

Tried your second code, the table, and the source line show up in the embedded codes - some styles might be missing so you may want to double-check on that. Let us know if you still encounter issues on this.

View solution in original post

0 Kudos
2 Replies
TonghuiMing
Esri Regular Contributor

@MattChomicky1 

The warning indicates that something in this code will be sanitized.

Tried your second code, the table, and the source line show up in the embedded codes - some styles might be missing so you may want to double-check on that. Let us know if you still encounter issues on this.

0 Kudos
MattChomicky1
Occasional Contributor

I am no longer seeing this warning, even after adding some additional styling to some of the elements