Skip to content

Instantly share code, notes, and snippets.

View gaffling's full-sized avatar
🕚
I don't have time to hurry!

Igor Gaffling gaffling

🕚
I don't have time to hurry!
View GitHub Profile
@gaffling
gaffling / html2markdown.php
Last active April 11, 2022 02:11 — forked from BlakeTurner/to-markdown.php
[HTML2Markdown] HTML to Markdown converter #php #function #markdown
<?php
/* ------------------------------------------------------------------- */
/* [HTML2Markdown] HTML to Markdown converter #PHP #function #markdown */
/* ------------------------------------------------------------------- */
$html = '
<h1>Headline 1</h1>
<h2>Headline 2</h2>
<h3>Headline 3</h3>