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
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
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' =>
> >
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' =>
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
echo $html->link(
Sanitize::html($post_array['content'], array('remove' =>
true)),
array(
'controller' => 'posts',
'action' => 'view',
'id' => $post_array['id'],
'quotes' =>
$this->Lin
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:/
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:
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
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
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
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.
$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
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,
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
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
"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
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
->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
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
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
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
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
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
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
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
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?
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
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
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,
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
31 matches
Mail list logo