To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #471 (accepted enhancement)

Opened 19 months ago

Last modified 14 months ago

Option to get _real_ plaintext aText-Slot

Reported by: lukas_schroeder Owned by: tboutell
Priority: major Milestone: 1.6
Component: apostrophePlugin Version: trunk
Keywords: Cc:
Symfony version: 1.4

Description

See also:
 http://groups.google.com/group/apostrophenow/browse_thread/thread/fe08fe759eb7b289

I put something like this in my template:

<h2><?php a_slot('headline', 'aText'); ?></h2>

Why does it end up as
<h2><p>the text i entered via editing</p></h2>

And the <p> tag is written to the database. An empty edit field? Ends
up as <p></p>.

How do I make aText be *real* plaintext?

As a workaround for now I tried this:
<h2><?php a_slot('headline', 'aText', array('allowed-tags' =>
'<pre>')) ?></h2>

to have <p> removed.

Didn't work.

Versions:
symfony -- via svn external from  http://svn.symfony-project.com/branches/1.4
apostrophePlugin - branches/1.4 as well.

Thanks,

-Lukas

Change History

Changed 19 months ago by tboutell

  • owner changed from boutell to tboutell
  • status changed from new to accepted
  • version set to trunk
  • milestone set to 1.5

Changed 14 months ago by geoffd

  • milestone changed from 1.5 to 1.6
Note: See TracTickets for help on using tickets.