I have created a FF web extension with context menus.
When I select a text and right click, I see my context menu, I click it and display the selected text. Here the selected text displayed is plain text where as I would like display the styles or links in the selected text.
info.linkText gives me the text of the link
and
info.selectedText gives me the plain text that is selected
But I would like to get the hyper links in the selected text
I was getting the below text “Sign in to your BBC account, or Register to see Weather, Local News and more”
Where as I would like to get actual html tags as below
Sign in to your BBC account, or Register to see Weather, Local News and more