Ticket #471 (accepted enhancement)
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

