Forum

Thread tagged as: Question, Problem

text tag outputting html as text

I am probably overlooking something silly, but I'm trying to add the editor to a textarea so it's possible to add links and such, but the best I got was html output as text. See the code below:

<perch:content type="textarea" size="xs" id="discover_desc" title="true" editor="markitup" html="true" label="Description"/>">
Bruno Calderaro

Bruno Calderaro 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

html="true" should do it. After you've re-saved the content, what result do you get?

Output is the same as input on the editor

<strong>Test stuff</strong>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you using the same template, or are there multiple templates for this content?

Single template with a few content tags.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can I see your diagnostics report?

Sure, here it is

Perch: 2.8.32
Production mode: Production (100)
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (1), perch2_content_index (917), perch2_content_items (58), perch2_content_regions (7), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (1), perch2_pages (3), perch2_resource_log (105), perch2_resource_tags (0), perch2_resources (63), perch2_resources_to_tags (0), perch2_settings (12), perch2_user_passwords (0), perch2_user_privileges (27), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (2)
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
    );
Editor plug-ins: markitup
H1: 7cf32a7b1f6667febdea26bde030cd20
L1: 38cf7e82191f1ec99f86b723e599c231
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.29: done
latest_version: 2.8.15
on_sale_version: 2.8.34
update_2.8.31: done
update_2.8.32: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: root
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: Perch
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: bruno.calderaro@majortravel.co.uk
PERCH_EMAIL_FROM_NAME: Bruno Calderaro
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/webstuff/home/beyonddubai.co.uk/DevSite/html/perch
PERCH_CORE: /home/webstuff/home/beyonddubai.co.uk/DevSite/html/perch/core
PERCH_RESFILEPATH: /home/webstuff/home/beyonddubai.co.uk/DevSite/html/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_YOUTUBE_API_KEY: AIzaSyDPiJjgRPrCMZHl5UR69MMBZmkYPc5ey1U
PERCH_RWD: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/webstuff/home/beyonddubai.co.uk/DevSite/html/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.3.3
Zend: 2.3.0
OS: Linux
SAPI: apache2handler
Safe mode: not detected
MySQL client: 5.1.73
MySQL server: 5.1.73
Free disk space: 114.19 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, Reflection, session, standard, shmop, SimpleXML, sockets, exif, tokenizer, xml, apache2handler, curl, dom, fileinfo, gd, json, memcache, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, sqlite3, wddx, xmlreader, xmlwriter, xsl, zip
GD: Yes
ImageMagick: No
PHP max upload size: 2M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 2M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
HTTP_HOST: dev.beyonddubai.co.uk
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER: https://dev.beyonddubai.co.uk/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.8,en;q=0.6
HTTP_COOKIE: __utma=191428031.2095198124.1482252452.1482252452.1482252452.1; __utmc=191428031; __utmz=191428031.1482252452.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); cmsa=1; PHPSESSID=a93gnuvj4980kiv2uqthgajd71
HTTP_VIA: 1.1 mtfw1:888 (squid/2.6.STABLE21)
HTTP_X_FORWARDED_FOR: 192.168.111.134
HTTP_CACHE_CONTROL: max-age=259200
HTTP_CONNECTION: keep-alive
PATH: /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SOFTWARE: Apache
SERVER_NAME: dev.beyonddubai.co.uk
SERVER_ADDR: 31.25.190.73
SERVER_PORT: 80
REMOTE_ADDR: 87.83.211.78
DOCUMENT_ROOT: /home/webstuff/home/beyonddubai.co.uk/DevSite/html
SERVER_ADMIN: mark@mts.co.uk
SCRIPT_FILENAME: /home/webstuff/home/beyonddubai.co.uk/DevSite/html/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 60969
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.0
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME: 1483462771

I had success after removing your final ">

<perch:content type="textarea" size="xs" id="discover_desc" title="true" editor="markitup" html="true" label="Description"/>">

becomes

<perch:content type="textarea" size="xs" id="discover_desc" title="true" editor="markitup" html="true" label="Description"/>

That didn't do but pointed me on the right direction, the extra ">" was leftover from an image tag, the description was being used on the alt.

But it seems that if I set up the parameters on the alt tag it doesn't work, but I did the other way around, and set up the full perch tag by itself where it will display just text and set up just the perch tag with ID on the alt and everything is fine now.

Thanks for the help!