View simple, bi-directional html in terminal

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a stardict dictionary which unfortunately uses some html tags. I like to be able to pipe its output to a utility to make it viewable. I don't even necessarily want to have visual effects dictated by the tags, just simply displaying them in a readable form is great. Here is an example output:



$ sdcv سلام
Found 1 items, similar to سلام.
-->Moin
-->سلام

<p align=right dir=rtl>(سَ) [<font color="green"> ع.</font> ] (<font color="green">مص ل.</font>)<br><font color="#7030a0">۱-</font> درود گفتن.<br><font color="#7030a0">۲-</font> بی گزند شدن.<br><font color="#7030a0">۳-</font> گردن نهادن.<br>~ علیک درود بر تو باد.<br>~ علیکم درود بر شما.</p>


I tried piping it to w3m, but it just displayed the html as it was.



PS: I use the terminal emulator kitty.










share|improve this question























  • You have tons of options as even a cursory Google search will show. A modern option is brow.sh
    – Panther
    5 hours ago







  • 1




    Please mention in the question that you need to display bi-directional text correctly; that may reduce the tons of options to a couple. Or even none, if you need something both lightweight and general.
    – mosvy
    15 mins ago














up vote
0
down vote

favorite












I have a stardict dictionary which unfortunately uses some html tags. I like to be able to pipe its output to a utility to make it viewable. I don't even necessarily want to have visual effects dictated by the tags, just simply displaying them in a readable form is great. Here is an example output:



$ sdcv سلام
Found 1 items, similar to سلام.
-->Moin
-->سلام

<p align=right dir=rtl>(سَ) [<font color="green"> ع.</font> ] (<font color="green">مص ل.</font>)<br><font color="#7030a0">۱-</font> درود گفتن.<br><font color="#7030a0">۲-</font> بی گزند شدن.<br><font color="#7030a0">۳-</font> گردن نهادن.<br>~ علیک درود بر تو باد.<br>~ علیکم درود بر شما.</p>


I tried piping it to w3m, but it just displayed the html as it was.



PS: I use the terminal emulator kitty.










share|improve this question























  • You have tons of options as even a cursory Google search will show. A modern option is brow.sh
    – Panther
    5 hours ago







  • 1




    Please mention in the question that you need to display bi-directional text correctly; that may reduce the tons of options to a couple. Or even none, if you need something both lightweight and general.
    – mosvy
    15 mins ago












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a stardict dictionary which unfortunately uses some html tags. I like to be able to pipe its output to a utility to make it viewable. I don't even necessarily want to have visual effects dictated by the tags, just simply displaying them in a readable form is great. Here is an example output:



$ sdcv سلام
Found 1 items, similar to سلام.
-->Moin
-->سلام

<p align=right dir=rtl>(سَ) [<font color="green"> ع.</font> ] (<font color="green">مص ل.</font>)<br><font color="#7030a0">۱-</font> درود گفتن.<br><font color="#7030a0">۲-</font> بی گزند شدن.<br><font color="#7030a0">۳-</font> گردن نهادن.<br>~ علیک درود بر تو باد.<br>~ علیکم درود بر شما.</p>


I tried piping it to w3m, but it just displayed the html as it was.



PS: I use the terminal emulator kitty.










share|improve this question















I have a stardict dictionary which unfortunately uses some html tags. I like to be able to pipe its output to a utility to make it viewable. I don't even necessarily want to have visual effects dictated by the tags, just simply displaying them in a readable form is great. Here is an example output:



$ sdcv سلام
Found 1 items, similar to سلام.
-->Moin
-->سلام

<p align=right dir=rtl>(سَ) [<font color="green"> ع.</font> ] (<font color="green">مص ل.</font>)<br><font color="#7030a0">۱-</font> درود گفتن.<br><font color="#7030a0">۲-</font> بی گزند شدن.<br><font color="#7030a0">۳-</font> گردن نهادن.<br>~ علیک درود بر تو باد.<br>~ علیکم درود بر شما.</p>


I tried piping it to w3m, but it just displayed the html as it was.



PS: I use the terminal emulator kitty.







utilities html pager w3m






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 5 mins ago

























asked 7 hours ago









HappyFace

12710




12710











  • You have tons of options as even a cursory Google search will show. A modern option is brow.sh
    – Panther
    5 hours ago







  • 1




    Please mention in the question that you need to display bi-directional text correctly; that may reduce the tons of options to a couple. Or even none, if you need something both lightweight and general.
    – mosvy
    15 mins ago
















  • You have tons of options as even a cursory Google search will show. A modern option is brow.sh
    – Panther
    5 hours ago







  • 1




    Please mention in the question that you need to display bi-directional text correctly; that may reduce the tons of options to a couple. Or even none, if you need something both lightweight and general.
    – mosvy
    15 mins ago















You have tons of options as even a cursory Google search will show. A modern option is brow.sh
– Panther
5 hours ago





You have tons of options as even a cursory Google search will show. A modern option is brow.sh
– Panther
5 hours ago





1




1




Please mention in the question that you need to display bi-directional text correctly; that may reduce the tons of options to a couple. Or even none, if you need something both lightweight and general.
– mosvy
15 mins ago




Please mention in the question that you need to display bi-directional text correctly; that may reduce the tons of options to a couple. Or even none, if you need something both lightweight and general.
– mosvy
15 mins ago















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478439%2fview-simple-bi-directional-html-in-terminal%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478439%2fview-simple-bi-directional-html-in-terminal%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay