[symfony-users] Re: Howto insert a ampersand into my database using a textarea from my backend app ?
edit: title: Post detail fields: description: { type: input_tag, params: size=150 } title:{ type: input_tag, params: size=53 } excerpt: { type: textarea_tag, params: size=50x2 } body: { type: textarea_tag, params: size=175x20 converters: htmlentities } created_at: { type: input_date_tag, params: rich=on } does not work either...Any idea anyone ? On Jul 13, 10:40 am, sd45sq5d5sqd wrote: > I tried doing it with a partial, it does not work either... > > On Jul 11, 6:04 pm, sd45sq5d5sqd wrote: > > > I just tried something like : > > > edit: > > title: Post detail > > fields: > > description: { type: input_tag, params: size=150 } > > title: { type: input_tag, params: size=53 } > > excerpt: { type: textarea_tag, params: size=50x2 } > > body: { type: textarea_tag, params: size=175x20 } > > created_at: { type: input_date_tag, params: rich=on } > > params: > > converters: > > htmlentities: [body] > > > but it does not work...Anyone ? > > > On Jul 11, 3:13 pm, sd45sq5d5sqd wrote: > > > > Hi, > > > > ok, but how do you do that with the generator.yml ? > > > > JF > > > > On Jul 11, 7:30 am, Mukesh Sharma wrote: > > > > > Hi, > > > > > Just use use htmlentities() > > > > > like-- > > > > > > > > > > -- > > > > Regards > > > > Mukesh Sharma > > > > > On Sat, Jul 11, 2009 at 10:46 AM, Dheeraj Kumar Aggarwal < > > > > > dheerajcom...@gmail.com> wrote: > > > > > Hi > > > > > > use htmlentities() while displaying in the textarea. > > > > > > On Sat, Jul 11, 2009 at 1:48 AM, sd45sq5d5sqd > > > > > wrote: > > > > > >> Comment mettre en base côté backend ces caractères ? > > > > > >> * < -> "<" (lt = lower than = inférieur à = "<" ) > > > > >> * > -> ">" (gt = greater than = supérieur à = ">") > > > > >> * & -> "&" (comme dit fraoustin - amp =ampersand) > > > > >> * " -> " (quot = quotation mark = quillemet) > > > > >> * ' -> ' (apos = apostrophe) > > > > > > -- > > > > > Regards, > > > > > Dheeraj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Howto insert a ampersand into my database using a textarea from my backend app ?
I tried doing it with a partial, it does not work either... On Jul 11, 6:04 pm, sd45sq5d5sqd wrote: > I just tried something like : > > edit: > title: Post detail > fields: > description: { type: input_tag, params: size=150 } > title: { type: input_tag, params: size=53 } > excerpt: { type: textarea_tag, params: size=50x2 } > body: { type: textarea_tag, params: size=175x20 } > created_at: { type: input_date_tag, params: rich=on } > params: > converters: > htmlentities: [body] > > but it does not work...Anyone ? > > On Jul 11, 3:13 pm, sd45sq5d5sqd wrote: > > > Hi, > > > ok, but how do you do that with the generator.yml ? > > > JF > > > On Jul 11, 7:30 am, Mukesh Sharma wrote: > > > > Hi, > > > > Just use use htmlentities() > > > > like-- > > > > > > > > -- > > > Regards > > > Mukesh Sharma > > > > On Sat, Jul 11, 2009 at 10:46 AM, Dheeraj Kumar Aggarwal < > > > > dheerajcom...@gmail.com> wrote: > > > > Hi > > > > > use htmlentities() while displaying in the textarea. > > > > > On Sat, Jul 11, 2009 at 1:48 AM, sd45sq5d5sqd wrote: > > > > >> Comment mettre en base côté backend ces caractères ? > > > > >> * < -> "<" (lt = lower than = inférieur à = "<" ) > > > >> * > -> ">" (gt = greater than = supérieur à = ">") > > > >> * & -> "&" (comme dit fraoustin - amp = ampersand) > > > >> * " -> " (quot = quotation mark = quillemet) > > > >> * ' -> ' (apos = apostrophe) > > > > > -- > > > > Regards, > > > > Dheeraj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Howto insert a ampersand into my database using a textarea from my backend app ?
I just tried something like : edit: title: Post detail fields: description: { type: input_tag, params: size=150 } title:{ type: input_tag, params: size=53 } excerpt: { type: textarea_tag, params: size=50x2 } body: { type: textarea_tag, params: size=175x20 } created_at: { type: input_date_tag, params: rich=on } params: converters: htmlentities: [body] but it does not work...Anyone ? On Jul 11, 3:13 pm, sd45sq5d5sqd wrote: > Hi, > > ok, but how do you do that with the generator.yml ? > > JF > > On Jul 11, 7:30 am, Mukesh Sharma wrote: > > > Hi, > > > Just use use htmlentities() > > > like-- > > > > > > -- > > Regards > > Mukesh Sharma > > > On Sat, Jul 11, 2009 at 10:46 AM, Dheeraj Kumar Aggarwal < > > > dheerajcom...@gmail.com> wrote: > > > Hi > > > > use htmlentities() while displaying in the textarea. > > > > On Sat, Jul 11, 2009 at 1:48 AM, sd45sq5d5sqd wrote: > > > >> Comment mettre en base côté backend ces caractères ? > > > >> * < -> "<" (lt = lower than = inférieur à = "<" ) > > >> * > -> ">" (gt = greater than = supérieur à = ">") > > >> * & -> "&" (comme dit fraoustin - amp = ampersand) > > >> * " -> " (quot = quotation mark = quillemet) > > >> * ' -> ' (apos = apostrophe) > > > > -- > > > Regards, > > > Dheeraj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Howto insert a ampersand into my database using a textarea from my backend app ?
Hi, ok, but how do you do that with the generator.yml ? JF On Jul 11, 7:30 am, Mukesh Sharma wrote: > Hi, > > Just use use htmlentities() > > like-- > > > > -- > Regards > Mukesh Sharma > > On Sat, Jul 11, 2009 at 10:46 AM, Dheeraj Kumar Aggarwal < > > dheerajcom...@gmail.com> wrote: > > Hi > > > use htmlentities() while displaying in the textarea. > > > On Sat, Jul 11, 2009 at 1:48 AM, sd45sq5d5sqd wrote: > > >> Comment mettre en base côté backend ces caractères ? > > >> * < -> "<" (lt = lower than = inférieur à = "<" ) > >> * > -> ">" (gt = greater than = supérieur à = ">") > >> * & -> "&" (comme dit fraoustin - amp = ampersand) > >> * " -> " (quot = quotation mark = quillemet) > >> * ' -> ' (apos = apostrophe) > > > -- > > Regards, > > Dheeraj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Howto insert a ampersand into my database using a textarea from my backend app ?
Hi, Just use use htmlentities() like-- -- Regards Mukesh Sharma On Sat, Jul 11, 2009 at 10:46 AM, Dheeraj Kumar Aggarwal < dheerajcom...@gmail.com> wrote: > Hi > > use htmlentities() while displaying in the textarea. > > On Sat, Jul 11, 2009 at 1:48 AM, sd45sq5d5sqd wrote: > >> >> Comment mettre en base côté backend ces caractères ? >> >>* < -> "<" (lt = lower than = inférieur à = "<" ) >>* > -> ">" (gt = greater than = supérieur à = ">") >>* & -> "&" (comme dit fraoustin - amp = ampersand) >>* " -> " (quot = quotation mark = quillemet) >>* ' -> ' (apos = apostrophe) >> >> >> > > > -- > Regards, > Dheeraj > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Howto insert a ampersand into my database using a textarea from my backend app ?
Hi use htmlentities() while displaying in the textarea. On Sat, Jul 11, 2009 at 1:48 AM, sd45sq5d5sqd wrote: > > Comment mettre en base côté backend ces caractères ? > >* < -> "<" (lt = lower than = inférieur à = "<" ) >* > -> ">" (gt = greater than = supérieur à = ">") >* & -> "&" (comme dit fraoustin - amp = ampersand) >* " -> " (quot = quotation mark = quillemet) >* ' -> ' (apos = apostrophe) > > > > -- Regards, Dheeraj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Howto insert a ampersand into my database using a textarea from my backend app ?
Comment mettre en base côté backend ces caractères ? * < -> "<" (lt = lower than = inférieur à = "<" ) * > -> ">" (gt = greater than = supérieur à = ">") * & -> "&" (comme dit fraoustin - amp = ampersand) * " -> " (quot = quotation mark = quillemet) * ' -> ' (apos = apostrophe) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Howto insert a ampersand into my database using a textarea from my backend app ?
I have added : public function __toString() { return $this->getTaggedTitle(); } in my model class Post, and that's it. On 10 juil, 20:22, sd45sq5d5sqd wrote: > Hi, > > I have a backend app with a "post" module to admin. > > This "post" module contains a textearea for the "body" part of the > "post". > > NB : I don"t use any rich text. > > If I write a & (for my web page to be valid) in this textarea, > when I save my form, I get a "&" in place of my original "&" in > the textarea... > > How to deal with this issue ? > > Thanx. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---