@Dlazzy wrote:
Hello,
I’m facing a little problem, on my app I’m receiving code embed, like :
<p>Hello</p> <a href="http://google.fr">Link to Google</a>
So this little piece of HTML will be well rendered in app. But if the user want to click on the link, this will open a window that create an overlay over the app with the web site. And it’s impossible to go back, the user need to close the app. This code embed can be very different, so a ‘fixed’ solution cannot be used.
Another solution is to parse the code embed, if
<a href>
is found, add inside the<a href>
a(tap)
action.
Like<a href="http://google.fr" (tap)="openExternally('http://google.fr')>Link to Google</a>"
. And theopenExternally()
function should be :
(using inAppBrowser plugin)openExternally(url) { this.browser.openExternalPage(url); }
But I think this is a big operation, because some code embed can be huge… If there is others solutions, thanks in advance.
Posts: 1
Participants: 1