Questions tagged [html]

HyperText Markup Language (HTML) is the main markup language for displaying web pages and other information that can be displayed in a web browser.

HyperText Markup Language (HTML) is the main markup language for displaying web pages and other information that can be displayed in a web browser.

See HTML - Wikipedia

315 questions
214
votes
22 answers

Simple command line HTTP server

I have a script which generates a daily report which I want to serve to the so called general public. The problem is I don't want to add to my headaches maintance of a HTTP server (e.g. Apache) with all the configurations and security…
Cid
  • 2,355
  • 2
  • 14
  • 6
79
votes
9 answers
58
votes
5 answers

Is there a simple Bash tool which can quickly render basic HTML?

From time to time I need to do a simple task where I output basic HTML into the console. I'd like to have it minimally rendered, to make it easier to read at a glance. Is there a utility which can handle basic HTML rendering in the shell (think of…
STW
  • 2,191
  • 4
  • 19
  • 22
49
votes
6 answers

Is there a command-line tool for converting html files to pdf?

I would like to install a command line tool within a Docker image in order to quickly convert *html files into *pdf files. I am surprised there is not a Unix tool to do something like this.
EB2127
  • 663
  • 2
  • 6
  • 7
26
votes
7 answers

Text between two tags

I want to retrieve whatever is between these two tags – – from an html doc. Now I don't have any specific html requirements that would warrant for an html parser. I just plain need something that matches and and gets…
TechJack
  • 363
  • 1
  • 3
  • 4
25
votes
2 answers

Open HTML attachments externally in Mutt

I recently managed to set up my mailcap so that Mutt can show HTML e-mails in the message window: # ~/.mailcap text/html; lynx -dump '%s' | more; nametemplate=%s.html; copiousoutput; which is automated by: # ~/.muttrc auto_view text/html Although…
romeovs
  • 1,660
  • 5
  • 21
  • 33
24
votes
4 answers

How to parse hundred html source code files in shell?

I have a couple of hundred html source code files. I need to extract the contents of a particular
element from each of these file so I'm going to write a script to loop through each file. The element structure is like this:
conorgriffin
  • 1,513
  • 6
  • 16
  • 23
17
votes
2 answers

Copy markdown input to the clipboard as rich text

I'm about to get involved in some collaborative prose writing with a friend of mine via email. As a regular person, he will of course be using MS Word document formats; as a massive nerd, I prefer to use markdown when writing on a computer. What I…
evilsoup
  • 6,727
  • 3
  • 33
  • 40
17
votes
4 answers

How to change the pair of a changed HTML tag in Vim?

How can I configure Vim so that when I change one member of a matching pair of HTML tags, the other is automatically changed to match? For example: given content, I want to change to
, and then the closing …
hjkml
  • 325
  • 1
  • 2
  • 5
16
votes
1 answer

How to pipe html into lynx?

I am testing some ajax call from the console. I like get rid of the meta-information noise that is html markup and just read the content, hence I like to pipe it into a terminal browser, e.g. lynx. Yet: curl www.google.de | lynx just opens a new…
k0pernikus
  • 14,853
  • 21
  • 58
  • 79
15
votes
7 answers

How do I convert Linux man pages to HTML without using groff?

I would like to convert some Linux man pages to HTML without using groff. My prejudice against groff is due to some PNG rendering issues it is giving me that seems to be localized to Sabayon (as these issues do not seem to occur on my VirtualBox VMs…
Josh Pinto
  • 3,483
  • 15
  • 52
  • 87
12
votes
1 answer

Save HTML from clipboard as markdown text

I want to be able to highlight a section of a web page and copy it to the clipboard then save it to my local disk as markdown. I need an efficient way to do that. My current cumbersome method is: highlight section and copy to clipboard open Libre…
MountainX
  • 17,168
  • 59
  • 155
  • 264
12
votes
4 answers

How to convert html entities to readable text?

I want html number entities like ę and want to convert it to real character. I have emails mostly from linkedin that look like this: chciałabym zapytać, czy rozważa Pan takze udział w nowych projektach w Warszawie ?…
jcubic
  • 9,612
  • 16
  • 54
  • 75
11
votes
1 answer

Why does this grep statement do the opposite of what I expect?

I have a file with some HTML and some text mixed in, I just wanted to use the text lines. I was fooling around with grep, trying to get a way to exclude the lines that began with an HTML tag, even lines that included whitespace before the…
Joe Schmoe
  • 119
  • 3
9
votes
5 answers

Convert csv to HTML table

I have a Medical.csv file with rows of following format, field: 'participation.type', displayName: 'program_type', type: 'String',path:'participation' field: 'participation.program', displayName: 'program_name', type:…
prayagupa
  • 4,797
  • 12
  • 32
  • 38
1
2 3
20 21