mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 19:26:08 +05:30
Remove white space
This commit is contained in:
parent
a4f65190b3
commit
3a2fdf1d5a
2 changed files with 2 additions and 3 deletions
|
|
@ -92,7 +92,7 @@ function add_content($title, $tag, $url, $content, $user, $description = null, $
|
|||
$post_tag = strtolower(preg_replace(array('/[^a-zA-Z0-9,. \-\p{L}]/u', '/[ -]+/', '/^-|-$/'), array('', '-', ''), remove_accent($pt)));
|
||||
$post_tagmd = safe_html($tag);
|
||||
$post_tag = rtrim($post_tag, ',');
|
||||
$post_tagmd = rtrim($post_tagmd, ',');
|
||||
$post_tagmd = preg_replace("/\s*,\s*/", ",", rtrim($post_tagmd, ','));
|
||||
$post_url = strtolower(preg_replace(array('/[^a-zA-Z0-9 \-\p{L}]/u', '/[ -]+/', '/^-|-$/'), array('', '-', ''), remove_accent($url)));
|
||||
$description = safe_html($description);
|
||||
|
||||
|
|
@ -191,7 +191,7 @@ function edit_content($title, $tag, $url, $content, $oldfile, $destination = nul
|
|||
$post_tag = strtolower(preg_replace(array('/[^a-zA-Z0-9,. \-\p{L}]/u', '/[ -]+/', '/^-|-$/'), array('', '-', ''), remove_accent($pt)));
|
||||
$post_tagmd = safe_html($tag);
|
||||
$post_tag = rtrim($post_tag, ',');
|
||||
$post_tagmd = rtrim($post_tagmd, ',');
|
||||
$post_tagmd = preg_replace("/\s*,\s*/", ",", rtrim($post_tagmd, ','));
|
||||
$post_url = strtolower(preg_replace(array('/[^a-zA-Z0-9 \-\p{L}]/u', '/[ -]+/', '/^-|-$/'), array('', '-', ''), remove_accent($url)));
|
||||
$description = safe_html($description);
|
||||
|
||||
|
|
|
|||
|
|
@ -111,7 +111,6 @@
|
|||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</li>
|
||||
<li class="nav-item has-treeview menu-open">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fa fa-cogs"></i>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue