<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIMarkupTextPrintFormatter/markupText",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIMarkupTextPrintFormatter(py)markupText"
  },
  "title" : "markupText"
}
-->

# markupText

The HTML markup text for the print formatter.

```
var markupText: String? { get set }
```

## Discussion

When drawing begins for the print job, you cannot change the value of this property. The delegate method [`printInteractionControllerWillStartJob(_:)`](/documentation/UIKit/UIPrintInteractionControllerDelegate/printInteractionControllerWillStartJob(_:)) is called immediately before the formatting is set for the job.

## See Also

[`-  initWithMarkupText:`](/documentation/UIKit/UIMarkupTextPrintFormatter/init(markupText:))

Returns a markup-text print formatter initialized with an HTML string.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)