Re: HTML ENTITIES

2011-08-31 Thread Miles J
Then just strip_tags() before each insert. Database size is irrelevant IMO. On Aug 27, 11:42 pm, Prabha vathi wrote: > I am never going to use html. Then why should i increase database size? > > > > > > > > > > On Sun, Aug 28, 2011 at 10:09 AM, Miles J wrote: > > So whats your reasoning for not

Re: HTML ENTITIES

2011-08-27 Thread Prabha vathi
I am never going to use html. Then why should i increase database size? On Sun, Aug 28, 2011 at 10:09 AM, Miles J wrote: > So whats your reasoning for not wanting HTML in the database? > > Not like it can really break anything. > > On Aug 27, 2:31 pm, Ryan Schmidt wrote: > > On Aug 27, 2011, at

Re: HTML ENTITIES

2011-08-27 Thread Miles J
So whats your reasoning for not wanting HTML in the database? Not like it can really break anything. On Aug 27, 2:31 pm, Ryan Schmidt wrote: > On Aug 27, 2011, at 03:46, Prabha vathi wrote: > > > echo $html->link( > >                 Sanitize::html($post_array['content'], array('remove' => > >

Re: HTML ENTITIES

2011-08-27 Thread Ryan Schmidt
On Aug 27, 2011, at 03:46, Prabha vathi wrote: > echo $html->link( > Sanitize::html($post_array['content'], array('remove' => > true)), > array( > 'controller' => 'posts', > 'action' => 'view', > 'id' =>

Re: HTML ENTITIES

2011-08-27 Thread Ryan Schmidt
On Aug 27, 2011, at 02:22, Prabha vathi wrote: > What does h means? http://book.cakephp.org/view/1132/h -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP re

Re: HTML ENTITIES

2011-08-27 Thread Prabha vathi
echo $html->link( Sanitize::html($post_array['content'], array('remove' => true)), array( 'controller' => 'posts', 'action' => 'view', 'id' => $post_array['id'], 'quotes' => $this->Lin

Re: HTML ENTITIES

2011-08-27 Thread Prabha vathi
What does h means? I am going to remove stripslashes and addslashes - Now what is the best to do in .tpl and elements page? I prefer not to save html tags in db. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http:/

Re: HTML ENTITIES

2011-08-26 Thread Miles J
If you want to remove HTML, use strip_tags. Regardless, you should just store the HTML version in the database and escape it on the front- end so it cant be rendered. The only thing you need to do is SQL injection protection, which cake does automatically. On Aug 26, 2:47 pm, Ryan Schmidt wrote:

Re: HTML ENTITIES

2011-08-26 Thread euromark
depends on the situation but in 99% of all cases: dont sanitize, dont strip tags, dont do anything on save simple use h() to remove html tags in the view where you output the database content echo h($user['User']['username']); etc On 26 Aug., 23:47, Ryan Schmidt wrote: > On Aug 26, 2011, at 15

Re: HTML ENTITIES

2011-08-26 Thread Ryan Schmidt
On Aug 26, 2011, at 15:39, Prabha vathi wrote: > It seems i read some wrong tutorial. :( > I have added few hundred of data in database. Is there anyway to fix it? Sure, but it's outside the scope of what CakePHP does. I'd dump the data to a text file, search for all occurrences of the regular

Re: HTML ENTITIES

2011-08-26 Thread Prabha vathi
e outputting something to the page. It's > not for use when storing in the database, and yes, I suspect that's the > function that's converting your text to html entities. > > Your use of addslashes is unrelated to the problem you're reporting but > most like

Re: HTML ENTITIES

2011-08-26 Thread Ryan Schmidt
x27;re outputting something to the page. It's not for use when storing in the database, and yes, I suspect that's the function that's converting your text to html entities. Your use of addslashes is unrelated to the problem you're reporting but most likely also incorrect.

Re: HTML ENTITIES

2011-08-26 Thread Prabha vathi
$author_fields[Aut']['name'] = addslashes(Sanitize::html($this->data['Post']['name'],array('remove' => true))); This is the insert line. On Sat, Aug 27, 2011 at 1:53 AM, Ryan Schmidt wrote: > > On Aug 26, 2011, at 14:03, Prabha vathi wrote: > > > > http://www.quotesoftheday.co.in/famous-quotes/3

Re: HTML ENTITIES

2011-08-26 Thread Ryan Schmidt
On Aug 26, 2011, at 14:03, Prabha vathi wrote: > http://www.quotesoftheday.co.in/famous-quotes/360/true-love-always-makes-a-man-better-no-matter-what-woman-inspires-it > You can find it here. Please check the author name. Why it is displaying like > that? > If you are not able to load the link,

HTML ENTITIES

2011-08-26 Thread Prabha vathi
Hi, http://www.quotesoftheday.co.in/famous-quotes/360/true-love-always-makes-a-man-better-no-matter-what-woman-inspires-it You can find it here. Please check the author name. Why it is displaying like that? If you are not able to load the link, This is the problem Instead of displaying the prope

Re: html entities

2010-02-17 Thread Waterschaats
Yes Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe f

Re: html entities

2010-02-17 Thread Sam Sherlock
"span", null, array('class' => 'test')), $url, array('escape' => false)); - S On 17 February 2010 11:29, Waterschaats wrote: > I want a link with a span inside. like this: href=''>linktext > > When I use this the span tags ar

html entities

2010-02-17 Thread Waterschaats
I want a link with a span inside. like this: linktext When I use this the span tags are converted to html entities(<span class="text">) $html->link($title . $html->tag("span", null, array('class' => 'test')), $url); Check out the new CakePH

Re: Html entities

2009-12-02 Thread Ernesto
->input("Items.1.description"); > > echo $form->input("Items.2.code"); > > echo $form->input("Items.2.description"); > > > the description fields has good probability to contain a math symbol > > or a comparison operator. > > > when i sa

Re: Html entities

2009-12-02 Thread euromark
the description fields has good probability to contain a math symbol > or a comparison operator. > > when i save my form Cake converts those symbols in html entities. > > is there a way to avoid this? Check out the new CakePHP Questions site http://cakeqs.org and help others with t

Html entities

2009-12-01 Thread Ernesto
rm->input("Items.1.description"); echo $form->input("Items.2.code"); echo $form->input("Items.2.description"); the description fields has good probability to contain a math symbol or a comparison operator. when i save my form Cake converts those symbols in htm

Re: xml parser removing html entities

2009-03-13 Thread blckspder
at a different OS though. Hope this info helps someone. On Mar 11, 6:26 pm, Antoni wrote: > Hello, > > I am using the provided xml class to parse my rss feed from my blog. > But when I parse the xml and spit out the array all of the html > entities have been removed. > > here is

xml parser removing html entities

2009-03-11 Thread Antoni
Hello, I am using the provided xml class to parse my rss feed from my blog. But when I parse the xml and spit out the array all of the html entities have been removed. here is what a link looks like: a href="http://picasaweb.google.com/lh/ photo/05ihu8FUhDHgVl9LmOx3kw? au

Re: HtmlHelper and html entities

2007-08-19 Thread housebolt
All fixed! : ) On Aug 19, 4:02 am, nitifixis <[EMAIL PROTECTED]> wrote: > Hi! > > I'm using the htmlhelper in my cake 1.1 app and I'm having problems > with strings with html entities. Example: > > $html->submit('télécharger'); > > cake

Re: HtmlHelper and html entities

2007-08-19 Thread nitifixis
On Aug 19, 3:18 pm, Mech7 <[EMAIL PROTECTED]> wrote: > Doesn't it convert them automatically for you if you try it with the > normal text ? > Using normal text the example above shows t?l?charger. --~--~-~--~~~---~--~~ You received this message because you are

Re: HtmlHelper and html entities

2007-08-19 Thread Mech7
Doesn't it convert them automatically for you if you try it with the normal text ? On Aug 19, 1:02 pm, nitifixis <[EMAIL PROTECTED]> wrote: > Hi! > > I'm using the htmlhelper in my cake 1.1 app and I'm having problems > with strings with html entities. Exampl

HtmlHelper and html entities

2007-08-19 Thread nitifixis
Hi! I'm using the htmlhelper in my cake 1.1 app and I'm having problems with strings with html entities. Example: $html->submit('télécharger'); cake is replacing all & symbols with & entities. How am I supposed to write a string with foreign characters?

Re: Rendering HTML entities within link helper

2006-04-23 Thread Vziiine
Thanks very much. This worked: link(' » All Projects','/projects', null,false,false);?> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.c

Re: Rendering HTML entities within link helper

2006-04-22 Thread nate
http://api.cakephp.org/class_html_helper.html#147be609c2c5901201380516d105ac29 Mika wrote: > link(' » All Projects','/projects', null, > true);?> if I remember right. The 3rd (or maybe second) parameter is to > not escape. --~--~-~--~~~---~--~~ You received this

Re: Rendering HTML entities within link helper

2006-04-22 Thread Mika
link(' » All Projects','/projects', null, true);?> if I remember right. The 3rd (or maybe second) parameter is to not escape. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Rendering HTML entities within link helper

2006-04-22 Thread Vziiine
Hi I am trying to put the double arrow entity '>>' into a hyperlink. using: link(' » All Projects','/projects');?> but what outputs is exactly that "» All Projects'". Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed