Skip to content

Conversation

@danishsshaikh
Copy link

Summary

This PR adds support for rendering <a> (anchor) tags inside cleaned HTML content.

  • Updates Reader to sanitize and preserve anchor tags using clean-html-js
  • Ensures href attributes are retained safely
  • Renders links correctly through react-native-fast-htmlview
  • Clicking a link now opens it via React Native's Linking.openURL

Why

Previously, <a> tags were stripped during sanitization and not rendered.
This adds clickable link support to improve parity with web article readers.

Testing

  • Verified HTML containing <a href="https://example.com">Example</a> renders link text
  • Clicking opens the URL as expected
  • Loader and non-link rendering remain unchanged

Fixes #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support clickable links + onLinkPress/linkStyle props in Reader content

1 participant