Skip to content

Commit

Permalink
Remove <strong> and <em> tag in basecamp HTML.
Browse files Browse the repository at this point in the history
  • Loading branch information
makzan committed Apr 27, 2016
1 parent e6edcd7 commit a55235d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fetch_basecamp.rb
Expand Up @@ -4,7 +4,7 @@

def clean_formatted_content(content)
# clean elements
content = content.gsub(/<br>/,"\n").gsub(/<\/?div>/,"").gsub(/<\/a>/,"").gsub(/<a[^>]*>/,"")
content = content.gsub(/<br>/,"\n").gsub(/<\/?div>/,"").gsub(/<\/a>/,"").gsub(/<a[^>]*>/,"").gsub(/<\/?strong>/,"").gsub(/<\/?em>/,"")

# list
content = content.gsub(/<\/?ul>/,"").gsub(/<li>/, "- ").gsub(/<\/li>/, "")
Expand Down
6 changes: 3 additions & 3 deletions source/cards/22-sibling-selector.md
Expand Up @@ -8,9 +8,9 @@ icon: notes

In CSS and JavaScript selector, there is 2 sibling selector to select elements within the same level, next to the first element. They are **adjacent sibling selector** and **general sibling selector**.

## <strong>Adjacent sibling selector
## Adjacent sibling selector

</strong>Adjacent sibling selector selects B element that _immediately_ follows the first specified element (A). A and B needs to share the same parent—at the same indentation level.
Adjacent sibling selector selects B element that _immediately_ follows the first specified element (A). A and B needs to share the same parent—at the same indentation level.

A + B

Expand All @@ -21,7 +21,7 @@ Demo:
<p data-height="266" data-theme-id="dark" data-slug-hash="VadXwx" data-default-tab="html,result" data-user="makzan" data-embed-version="2" class="codepen">See the Pen <a href="http://codepen.io/makzan/pen/VadXwx/">Adjacent sibling selector demo</a> by Thomas Seng Hin Mak (<a href="http://codepen.io/makzan">@makzan</a>) on <a href="http://codepen.io">CodePen</a>.</p>
<script async src="//assets.codepen.io/assets/embed/ei.js"></script>

## <strong>General sibling selector</strong>
## General sibling selector

General sibling selector selects B elements that are after the first selector (A). A and B needs to share the same parent—at the same indentation level.

Expand Down

0 comments on commit a55235d

Please sign in to comment.