Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPExcel_RichText problems #43

Open
sashsvamir opened this issue Mar 11, 2017 · 0 comments
Open

PHPExcel_RichText problems #43

sashsvamir opened this issue Mar 11, 2017 · 0 comments
Assignees

Comments

@sashsvamir
Copy link

If any cell contain text with different font styles, value of this cell getted as PHPExcel_RichText object. To prevent validate error of this value now i'm use function:

'valueReplacement' => function ($value) {
    return ($value instanceof \PHPExcel_RichText) ? $value->getPlainText() : $value;
}

But i want get plain text for all cells and don't want write valueReplacement function for every property. Can you give me advice, may be exist more best solution to resolve this point.
Or may be possible to add configure option for Importer component to use all cells data only as plain text.

@arogachev arogachev self-assigned this Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants