Strip html tags for generate Friendly url
This commit is contained in:
parent
3c3673fcab
commit
814ccb4fe0
|
@ -160,7 +160,8 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
|
|||
'name'=>'position',
|
||||
'value'=>'1',
|
||||
'class'=>'uk-width-1-1 uk-form-medium',
|
||||
'label'=>$L->g('Position')
|
||||
'label'=>$L->g('Position'),
|
||||
'tip'=>$L->g('This field is used when you order the content by position')
|
||||
));
|
||||
|
||||
// External Coverimage
|
||||
|
@ -169,7 +170,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
|
|||
'value'=>'',
|
||||
'class'=>'uk-width-1-1 uk-form-medium',
|
||||
'label'=>$L->g('External Cover Image'),
|
||||
'tip'=>$L->g('Image URL')
|
||||
'tip'=>$L->g('Full image URL')
|
||||
));
|
||||
|
||||
// Slug input
|
||||
|
|
|
@ -34,7 +34,8 @@ class dbPages extends dbJSON
|
|||
|
||||
// Generate slug from content if the title is empty
|
||||
if (empty($args['title'])) {
|
||||
$args['slug'] = Text::truncate($args['content'], 60, '');
|
||||
$tmpslug = Text::removeHTMLTags($args['content']);
|
||||
$args['slug'] = Text::truncate($tmpslug, 60, '');
|
||||
}
|
||||
|
||||
// Generate key
|
||||
|
|
|
@ -191,6 +191,11 @@ class Text {
|
|||
return $cut;
|
||||
}
|
||||
|
||||
public static function removeHTMLTags($string)
|
||||
{
|
||||
return strip_tags($string);
|
||||
}
|
||||
|
||||
// Return string length
|
||||
public static function length($string)
|
||||
{
|
||||
|
|
|
@ -75,10 +75,12 @@
|
|||
"status": "Status",
|
||||
"published": "Published",
|
||||
"draft": "Draft",
|
||||
"empty-title": "Empty title",
|
||||
"date": "Date",
|
||||
"external-cover-image": "External cover image",
|
||||
"parent": "Parent",
|
||||
"image-url": "Image URL",
|
||||
"full-image-url": "Full image URL.",
|
||||
"this-field-is-used-when-you-order-the-content-by-position": "This field is used when you order the content by position.",
|
||||
"position": "Position",
|
||||
"friendly-url": "Friendly URL",
|
||||
"image-description": "Image description",
|
||||
|
@ -161,7 +163,12 @@
|
|||
"complete-the-form-choose-a-password-for-the-username-admin": "Complete the form choose a password for the username <b>< admin ></b>",
|
||||
"show-password": "Show password",
|
||||
"install": "Install",
|
||||
"login": "Login",
|
||||
"back-to-login-form": "Back to login form",
|
||||
"get-login-access-code": "Get login access code",
|
||||
"email-access-code": "Email access code",
|
||||
"whats-next": "What's Next",
|
||||
"username-or-password-incorrect": "Username or password incorrect",
|
||||
"follow-bludit-on": "Follow Bludit on",
|
||||
"visit-the-forum-for-support": "Visit the [forum](https://forum.bludit.org) for support",
|
||||
"manage-your-bludit-from-the-admin-panel": "Manage your Bludit from the [admin area]({{ADMIN_AREA_LINK}})",
|
||||
|
|
Loading…
Reference in New Issue