Get Timers Now!
X
 
May 10 - 06:38:00
-1
Help
7 Watchers
Page: [ <<< - < ] 1 2 3 4 
Marios XHTML Crash Course v2.0 Started by: Mario on Oct 23, '07 01:20

By golly, that does work!! GF Iota, Thank you. For that sir, I will get you a big coat!!!

Report Post Tip

And by big you mean huuuuuge, right? Cuz a normal "big" won't fit him.

Report Post Tip

Updated List of Allowed XHTML

(an official update to this thread is forthcoming)

 


   $allowed_html = array(
            'sub' => array(),
            'a' => array(
                'href' => array(),
                'title' => array(),
                'rel' => array(),
                'class' => array()),
            'blockquote' => array('cite' => array()),
            'br' => array(),
            'code' => array(),
            'hr' => array(),
            'em' => array(),
            'strong' => array(),
            'ul' => array(),
            'ol' => array(),
            'li' => array(),
            'span' => array('class' => array(),'style'=>array()),
            'pre' => array(),
            'p' => array('class'=>array(),'style'=>array()),
            'sub' => array(),
            'sup' => array(),
            'h1' => array(),
            'h2' => array(),
            'h3' => array(),
            'table' => array(),
            'tr' => array(),
            'td' => array(),
            'th' => array(),
            'thead' => array(),
            'tbody' => array()
    );

    require_once 'htmlpurifier/HTMLPurifier.auto.php';
    $config = HTMLPurifier_Config::createDefault();
    $config->set('Core.Encoding','utf-8');
    $config->set('HTML.TidyLevel','heavy');
    $config->set('HTML.Doctype','XHTML 1.1');
    $config->set('HTML.Trusted', false);
    $config->set('Cache.SerializerPath',HOMEPATH.'/cache/Serializer');
    $config->set('AutoFormat.RemoveEmpty',true);
    $config->set('Attr.EnableID',false);
    $config->set('AutoFormat.AutoParagraph',true);
    $config->set('AutoFormat.Linkify',true);
#   $config->set('Core','EscapeInvalidTags',true);
#   $config->set('Core','EscapeNonASCIICharacters',true);
    $config->set('HTML.Parent','td');

    $config->set('CSS.AllowedProperties',array(
        'text-decoration',
        'text-align',
        'font-family',
        'font-size',
        'padding'
    )); 



Report Post Tip

how about centering quotes?

Report Post Tip

<blockquote cite=" cite for the quote">I think i got this</blockquote>

Report Post Tip

For centred text use:

[p style="text-align:center;"]Text here[/p]

Replacing [ with < and ] with >

Text here

Report Post Tip

Still dont understand it..

Report Post Tip

this has utterly blown my mind trying to figure colours out for ages, I think I love you for writing this guide :p

Report Post Tip

When will they do an update to this page?

Report Post Tip

  <a href="http://mafiareturns.com/profit/drugs.php?" class="cool six">ha</a>

Report Post Tip

Any way to do <strikethrough>strikethrough</strikethrough> text in XHTML? 

Report Post Tip

Adamine, you can use the "strike" or "s" tag :)

"strike"
"s"

Report Post Tip

Thank you Gypsy!!

Report Post Tip

Italics

Both of these worked or I concede I am, in actual fact, a cretin

Report Post Tip

I'm trying to maintain formatting in my post. I have done this succesfully years ago, though I now cannot remember the process. I do beleive it was with < code >

I Just can't remember the context I used it in.. Can anyone help?

 

Example:

Instead of having my post look like... "Adamine Boss $6,252,6729"

I would like it to look like this "Adamine.................................Boss.................................$6,252,6729"

Instead of periods, I would like empty space. 

 

Thanks

Report Post Tip

I love you this is the first thing ive found tht has helped :)

Report Post Tip

1234 ima knock on ya door. Check/Test

Report Post Tip

font-family

Testing 1234 hi ya doin



Testing 1234 hi ya doin

Report Post Tip

Help
Replying to: Marios XHTML Crash Course v2.0
Compose Body:

@Mention Notifications: On More info
How much do you want to tip for this post?

Minimum $20,000

(NaN)
G2
G1
L
H
D
C
Private Conversations
0 PLAYERS IN CHANNEL