';
'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 '
';
'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
diff --git a/bl-kernel/dbpages.class.php b/bl-kernel/dbpages.class.php
index 15ca6446..5ad11019 100644
--- a/bl-kernel/dbpages.class.php
+++ b/bl-kernel/dbpages.class.php
@@ -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
diff --git a/bl-kernel/helpers/text.class.php b/bl-kernel/helpers/text.class.php
index 8454a4e6..03eba173 100644
--- a/bl-kernel/helpers/text.class.php
+++ b/bl-kernel/helpers/text.class.php
@@ -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)
{
diff --git a/bl-languages/en.json b/bl-languages/en.json
index 0e53e3dd..294a720d 100644
--- a/bl-languages/en.json
+++ b/bl-languages/en.json
@@ -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 < admin >",
"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}})",