Skip to content

Wrong content after tidy parsing #954

Open
@khoabui1412

Description

@khoabui1412

Hi there,
I have input :

<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Nested anchor tag</title>
	</head>
	<body>
		<a href="">
			<table cellspacing="0" cellpadding="0" style="display: inline-block">
				<td align="left" bgcolor="#215ca0" style="border-radius: 2px; display: block; text-align: center;margin: 0 auto; padding: 10px 96px; font-size: 20px; background-color: #215ca0">
					<a href="https://google.com" class="elem-width padding-zero" style="color: #fff; font-weight: 300; font-family: 'Open Sans', Helvetica, Arial, sans-serif; text-decoration: none;width: 100%; display: inline-block">Reset Password                                                                                                    
					</a>
				</td>
			</table>
		</a>
	</body>
</html>

After parsing, output will be:

...
<body>
<a href="">Reset Password<table cellspacing="0" cellpadding="0" style="display: inline-block">
		<tr>
			<td align="left" bgcolor="#215CA0" style="border-radius: 2px; display: block; text-align: center;margin: 0 auto; padding: 10px 96px; font-size: 20px; background-color: #215ca0"/>
		</tr>
	</table>
</a>
</body>

A link is lost.
Can you check for the reason?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions