Home » Documentation » What is PeoplePods? » SDK Documentation » Object Definitions » $Obj » $Obj->writeFormatted()


// $Obj->writeFormatted($field);

Writes out an HTML formatted version of $field.

Currently, this formatting includes:

  • Converting URLs to links
  • Converting double-newlines to p tags
  • Converting single-newlines to br tags
  • Wrapping the whole shebang in p tags.

For example, the following code...

$body = "Hello!

Check out this link:


...would output the following HTML:

  <p>Check out this link:<br />
      <a href="http://xoxco.com/">http://xoxco.com</a></p>

See also: $Obj->write() and $Obj->htmlspecialwrite().

  • Discuss This Document

No comments have been posted yet.

Download Download the latest version of PeoplePods!

0.667 Latest Version:
Release Notes

A free membership is required to download PeoplePods.

  Already Registered? Login

Recent Posts from Our Blog

Developer Preview Launch!

I am very excited to announce the launch of PeoplePods version 0.666, THE DEVELOPER PREVIEW! After tons of hacking, I have tweaked the last line of code, and I am finally ready for a wider audience...