FlutterHtmlView icon indicating copy to clipboard operation
FlutterHtmlView copied to clipboard

Duplicate link when using <a></a> tag nested inside <p></p>

Open Eimji opened this issue 6 years ago • 10 comments

Hello, When you have for exemple a HTML string such as '<p>Hello world, check the Google page <a href="https://google.com">https://google.com</a></p>' , the link https://google.com is displayed twice.

To remove, I need to change as : '<p>Hello world, check the Google page</p> <a href="https://google.com">https://google.com</a>'

We can't add a <a></a> tag inside a <p></p> tag.

Eimji avatar Jun 11 '18 12:06 Eimji

This happens for other tags as well when they are inside a <p>, such as <b> and <i> '<p><i>Italic text</i> <b>Strong text</b></p>'

screenshot_20180621-124851

ricsmania avatar Jun 21 '18 15:06 ricsmania

is this issue fixed? I tried with latest version (0.5.3) problem still exist

html

Thanks.

hahn avatar Aug 03 '18 08:08 hahn

Have the issue aswell, is it being worked on?

HannoOttens avatar Aug 08 '18 13:08 HannoOttens

Finding this is an issue still as well. If you do not have paragraphs it ignores the text. If you have Paragraphs it appends ALL the links found in content at the bottom.

thenexus00 avatar Aug 14 '18 04:08 thenexus00

This occurs in 0.5.3 so if you change it to 0.5.2 it wont do it any more.

thenexus00 avatar Aug 14 '18 05:08 thenexus00

@thenexus00, I'm still facing this issue on 0.5.2. Are you sure the links aren't repeated?

holykou avatar Aug 14 '18 11:08 holykou

Sorry my bad, I dropped it to 0.5.1 - That stopped it from happening.

thenexus00 avatar Aug 14 '18 11:08 thenexus00

update to 0.5.4. it fixed now. I think

hahn avatar Aug 15 '18 01:08 hahn

Yep, this does look to have fixed it, Love ya work!

On 15/8/18 11:48 am, Hanhan Husna wrote:

update to 0.5.4. it fixed now. I think

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PonnamKarthik/FlutterHtmlView/issues/14#issuecomment-413069535, or mute the thread https://github.com/notifications/unsubscribe-auth/AEHOUBjQgMXtIwSswzpkr1VXdNFsg7ZGks5uQ33sgaJpZM4Uilsb.

thenexus00 avatar Aug 16 '18 04:08 thenexus00

Hello

The last version fixes the issue reported here.

But there is another issue with the following case: <a href="..."><img src="..."/></a> The image isn't displayed.

Please could you fix it? Thanks

Eimji avatar Aug 19 '18 13:08 Eimji