I'd like to use TeX to hyphenate paragraphs of text--and only to hyphenate. My goal is to show hyphenated text on a webpage, with ­ entities where a possible word break could happen.
So I'd like to get contents of an hbox of a paragraph after hyphenation in some machine-parseable format.
I could firstly put my paragraph into a box register, e.g. with \setbox42=\hbox{Hyphenate me please}, then I force the hyphenation algorithm to do its job (how?), then I show the contents of page with \showlists.
I have read the TeXbook, but I don't know how to force hyphenation to happen.
Any ideas?