Answers.Body: <p>If you have an html editor which supports wild card or RegEx search and replace like Adobe Dreamweaver you could delete these out of the source code very quickly.  See image below-</p>
  
  <p><img src="https://i.sstatic.net/69qMe.png" alt="enter image description here"></p>
  
  <p>Also you can go to RegEx tester sites like these to form the most effective search expression for your needs. <a href="http://regex101.com/" rel="nofollow noreferrer">http://regex101.com/</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-14T20:22:55.003Z
Answers.Text: That is sort of what I resorted to but used a `perl` script to remove it.  Did not know about regex101 so thanks for that.
Answers.UserDisplayName: Peter Grill
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-14T19:49:33.837Z
Answers.LastActivityDate: 2014-10-14T19:49:33.837Z
Answers.UserDisplayName: maxwell
Answers.Body: <p>You can try to suppress both those tags using CSS in an included  <code>.css</code> file  (or inserting in the HTML code between <code>&lt;style&gt;</code> and <code>&lt;/style&gt;</code>):</p>
  
  <pre><code>span.titlemark, span.titlemark + br {
      display: none;
  }
  </code></pre>
  
  <p>But you would have to test that on all devices to see if their renderers correctly handle it.¹</p>
  
  <p>If you don't want to go into the effort of testing this, it is better to remove both nodes altogether, with appropriate parsing of the input. Using python (2.x) and the <a href="http://www.crummy.com/software/BeautifulSoup/bs4/doc/" rel="nofollow">BeautifulSoup</a> package², you can do:</p>
  
  <pre><code>import sys
  import io
  from bs4 import BeautifulSoup
  
  with io.open(sys.argv[1]) as fp:
      soup = BeautifulSoup(fp)
  
  for node in soup.select("span.titlemark"):
      print node.get_text()
      sibling = node.find_next_sibling()
      if sibling and sibling.name == 'br' and not sibling.get_text():
          sibling.extract()
      node.extract()
  
  with io.open(sys.argv[1], 'w') as fp:
      fp.write(unicode(soup))
  </code></pre>
  
  <p>to get rid of both.³ BeautifulSoup <a href="http://www.crummy.com/software/BeautifulSoup/bs4/doc/#installing-a-parser" rel="nofollow">supports several html/xml parser</a>, depending on the type and quality of the output of <code>htlatex</code>, you might need to experiment with the alternatives to get better/faster results.</p>
  
  <p><code>htlatex</code> is a shell script, so you could make a copy (<code>/usr/local/bin/htlatexstrip</code>) and add calling the python script as a postprocessing step in there.</p>
  
  <p>¹ <sub>The X + Y suppresses the sibling <code>&lt;br /&gt;</code> node</sub><br>
  ² <sub>install with <code>pip install beautifulsoup4</code> or <code>easy_install beautifulsoup4</code></sub><br>
  ³ <sub>I am sure you can do something like that easily in PERL (or Ruby) as well, <strong>I</strong> just don't know how</sub></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-17T06:45:23.377Z
Answers.LastActivityDate: 2014-10-21T04:21:13.103Z
Answers.LastEditDate: 2014-10-21T04:21:13.103Z
Answers.UserDisplayName: Anthon
Answers.Body: <p>If you want them to remain in the source code, but simply hide them in the browser output, you might add the following statement to your style sheets :</p>
  
  <pre><code>.titlemark {
      display:none;
  }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-15T21:04:13.363Z
Answers.LastActivityDate: 2014-10-15T21:04:13.363Z
Answers.UserDisplayName: Daniel
Answers.Body: <p>You could try using CSS to style the titlemark class with "visibility: hidden" or "display:none".</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-14T20:21:43.070Z
Answers.Text: Can you provide the exact CSS code required. I am not that familiar with CSS, especially for a `span class`.
Answers.UserDisplayName: Peter Grill
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-17T06:46:12.347Z
Answers.Text: `visibility: hidden` would leave the space for the tag in the rendering.
Answers.UserDisplayName: Anthon
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-14T18:19:39.107Z
Answers.LastActivityDate: 2014-10-14T18:19:39.107Z
Answers.UserDisplayName: bfd
Body: <p>I am generating HTML output for ePub from LaTeX source.
  But, am having difficulty eliminating the &quot;Chapter &quot; at the start of each chapter. So, wondering if there is an easy way to tell the HTML reader that this is some form of comment so as to <em>not</em> display this in the output?</p>
  <pre><code>&lt;span class=&quot;titlemark&quot;&gt;Chapter&amp;#x00A0;1&lt;/span&gt;
  </code></pre>
  <p>Ideally, I'd like to eliminate the <code>&lt;br /&gt;</code> that follows this as well, but not sure that that would be easy.</p>
  <h2>Notes:</h2>
  <ul>
  <li>The command line tool I am using <a href="https://tug.org/applications/tex4ht/mn-commands.html" rel="nofollow noreferrer">htlatex</a> which takes a .tex file and produces HTML.</li>
  </ul>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-14T06:35:32.167Z
Comments.Text: What program do you use to generate the output? Could you add an automated post-processing step?
Comments.UserDisplayName: Anthon
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-14T06:39:41.080Z
Comments.Text: @Anthon: I am using `latexht`, but am a bit of newbie with it.  For now I have used `sed` to remove it, but thought perhaps there was a better way. Eventually will have to figure out how to eliminate in the first place.
Comments.UserDisplayName: Peter Grill
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-14T07:07:54.043Z
Comments.Text: Do you have a link for latexht?
Comments.UserDisplayName: Anthon
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-14T08:19:24.957Z
Comments.Text: @Anthon: Have added a link in the text.
Comments.UserDisplayName: Peter Grill
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-17T06:48:24.577Z
Comments.Text: The `latexht` instead of `htlatex` in your previous comment got me of to the wrong tangent. Google search is not smart enough to see through that (and neither am I).
Comments.UserDisplayName: Anthon
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-18T01:13:39.193Z
Comments.Text: @Anthon: Oppss. Sorry about that.
Comments.UserDisplayName: Peter Grill
Tags: <html><css>
Title: How to hide/delete/ignore a specfic span type
UserDisplayName: Peter Grill
ThreadText: # How to hide/delete/ignore a specfic span type
  
  (Asked by: username_0 on 2014-10-13)
  
  I am generating HTML output for ePub from LaTeX source.
  But, am having difficulty eliminating the "Chapter " at the start of each chapter. So, wondering if there is an easy way to tell the HTML reader that this is some form of comment so as to *not* display this in the output?
  
  ```
  <span class="titlemark">Chapter&#x00A0;1</span>
  
  ```
  
  Ideally, I'd like to eliminate the `<br />` that follows this as well, but not sure that that would be easy.
  
  ## Notes:
  
  * The command line tool I am using [htlatex](https://tug.org/applications/tex4ht/mn-commands.html) which takes a .tex file and produces HTML.
  
  **Tags:** html, css
  
  > **Comments:**
  > **username_1**: What program do you use to generate the output? Could you add an automated post-processing step?  
  > **username_0**: @username_1: I am using `latexht`, but am a bit of newbie with it.  For now I have used `sed` to remove it, but thought perhaps there was a better way. Eventually will have to figure out how to eliminate in the first place.  
  > **username_1**: Do you have a link for latexht?  
  > **username_0**: @username_1: Have added a link in the text.  
  > **username_1**: The `latexht` instead of `htlatex` in your previous comment got me of to the wrong tangent. Google search is not smart enough to see through that (and neither am I).  
  > **username_0**: @username_1: Oppss. Sorry about that.  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_2 on 2014-10-14. Score: 3
  
  If you have an html editor which supports wild card or RegEx search and replace like Adobe Dreamweaver you could delete these out of the source code very quickly. See image below-
  
  ![enter image description here](https://i.sstatic.net/69qMe.png)
  
  Also you can go to RegEx tester sites like these to form the most effective search expression for your needs. <http://regex101.com/>
  
  > **Comments:**
  > **username_0**: That is sort of what I resorted to but used a `perl` script to remove it.  Did not know about regex101 so thanks for that.  
  
  ---
  
  ### Answer by username_1 on 2014-10-17. Score: 3
  
  You can try to suppress both those tags using CSS in an included `.css` file (or inserting in the HTML code between `<style>` and `</style>`):
  
  ```
  span.titlemark, span.titlemark + br {
      display: none;
  }
  
  ```
  
  But you would have to test that on all devices to see if their renderers correctly handle it.¹
  
  If you don't want to go into the effort of testing this, it is better to remove both nodes altogether, with appropriate parsing of the input. Using python (2.x) and the [BeautifulSoup](http://www.crummy.com/software/BeautifulSoup/bs4/doc/) package², you can do:
  
  ```
  import sys
  import io
  from bs4 import BeautifulSoup
  
  with io.open(sys.argv[1]) as fp:
      soup = BeautifulSoup(fp)
  
  for node in soup.select("span.titlemark"):
      print node.get_text()
      sibling = node.find_next_sibling()
      if sibling and sibling.name == 'br' and not sibling.get_text():
          sibling.extract()
      node.extract()
  
  with io.open(sys.argv[1], 'w') as fp:
      fp.write(unicode(soup))
  
  ```
  
  to get rid of both.³ BeautifulSoup [supports several html/xml parser](http://www.crummy.com/software/BeautifulSoup/bs4/doc/#installing-a-parser), depending on the type and quality of the output of `htlatex`, you might need to experiment with the alternatives to get better/faster results.
  
  `htlatex` is a shell script, so you could make a copy (`/usr/local/bin/htlatexstrip`) and add calling the python script as a postprocessing step in there.
  
  ¹ The X + Y suppresses the sibling `<br />` node  
  ² install with `pip install beautifulsoup4` or `easy_install beautifulsoup4`  
  ³ I am sure you can do something like that easily in PERL (or Ruby) as well, **I** just don't know how
  
  
  ---
  
  ### Answer by username_3 on 2014-10-15. Score: 1
  
  If you want them to remain in the source code, but simply hide them in the browser output, you might add the following statement to your style sheets :
  
  ```
  .titlemark {
      display:none;
  }
  
  ```
  
  
  ---
  
  ### Answer by username_4 on 2014-10-14. Score: 0
  
  You could try using CSS to style the titlemark class with "visibility: hidden" or "display:none".
  
  > **Comments:**
  > **username_0**: Can you provide the exact CSS code required. I am not that familiar with CSS, especially for a `span class`.  
  > **username_1**: `visibility: hidden` would leave the space for the tag in the rendering.  
  
  ---
  
  