[exit example]
 
 \documentclass{book}
 
 \input TeX4ht.sty
 \Preamble{html}   \begin{document}
 \EndPreamble
 
 \TocAt>{section,subsection,/likechapter}
 \CutAt{subsection,section,likechapter}
 
 \section{My heart} is not
 haughty,
 \subsection{nor mine} eyes lofty:
 
 \section{neither do}  I exercise
 myself in great matters,
 \subsection{or in} things
 \subsection{too  high} for me.
 
 \chapter*{Psalms}
 
 \section*{(131:1)}
 
 \end{document}
[download source]
Non-simulated output:
mn-26.html

0.1 My heart 

is not haughty,


      0.1.1 nor mine

0.2 neither do 

I exercise myself in great matters,


      0.2.1 or in
      0.2.2 too high

(131:1)